-
Notifications
You must be signed in to change notification settings - Fork 107
35 lines (31 loc) · 976 Bytes
/
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
name: Release
permissions:
contents: write # for modifying version in-place & pushing tags
packages: read # for downloading signore docker image
on:
workflow_dispatch:
env:
GOPROXY: https://proxy.golang.org/
jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
ssh-key: "${{ secrets.GIT_SSH_PRIVATE_KEY }}"
-
id: setup-signore-package
uses: hashicorp/setup-signore-package@v1
-
name: Run release script
env:
SIGNORE_CLIENT_ID: ${{ secrets.SIGNORE_CLIENT_ID }}
SIGNORE_CLIENT_SECRET: ${{ secrets.SIGNORE_CLIENT_SECRET }}
SIGNORE_SIGNER: ${{ secrets.SIGNORE_SIGNER }}
run: |
mkdir -p ~/.ssh
echo "${{ secrets.GIT_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed22519
./scripts/release/release.sh
rm -f ~/.ssh/id_ed22519