-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (48 loc) · 1.62 KB
/
manual-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: manual-release
on:
workflow_dispatch:
inputs:
tag_name:
required: true
description: tag name for the release, ex v1.2.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PUSH_TOKEN: ${{ secrets.ISOGR_CI_PAT_TOKEN }}
TAG_NAME: ${{github.event.inputs.tag_name}}
jobs:
make-release:
runs-on: ubuntu-latest
steps:
- name: clone it
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 50
- name: setup env vars
run: |
REPOSITORY_NAME="${{github.repository}}"
echo "REPOSITORY_NAME=$REPOSITORY_NAME" >> ${GITHUB_ENV}
- name: make new release
uses: softprops/action-gh-release@v0.1.7
with:
token: ${{ env.GITHUB_PUSH_TOKEN }}
tag_name: ${{env.TAG_NAME}}
body: "#release-by-ci for ${{env.TAG_NAME}}"
draft: false
prerelease: false
# - name: make new release
# uses: softprops/action-gh-release@v0.1.7
# with:
# token: ${{ env.GITHUB_PUSH_TOKEN }}
# tag_name: ${{env.API_TAG_NAME}}
# body: for Relation Gem v${{env.GEM_VERSION}}
# draft: false
# prerelease: false
- uses: elgohr/Publish-Docker-Github-Action@master
with:
dockerfile: Dockerfile
tags: "latest,${{env.TAG_NAME}}"
registry: docker.pkg.github.com
name: ${{env.REPOSITORY_NAME}}/webapp-aws
username: ${{github.actor}}
password: ${{env.GITHUB_TOKEN}}