-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (34 loc) · 1.01 KB
/
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
on:
push:
tags:
- '**'
env:
GH_TOKEN: ${{ github.token }}
jobs:
release:
name: manual approval gate release
runs-on: ubuntu-latest
# https://docs.github.com/en/actions/reference/authentication-in-a-workflow
permissions:
id-token: write
packages: write
contents: write
repository-projects: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup KO
uses: imjasonh/[email protected]
- name: Manual Approval Gate Release Started...
run: |
git fetch --tags
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "***********************************"
echo "Latest tag is: ${latest_tag}"
echo "***********************************"
chmod +x ./release.sh
./release.sh "${latest_tag}"