-
Notifications
You must be signed in to change notification settings - Fork 67
31 lines (31 loc) · 884 Bytes
/
release.yml
File metadata and controls
31 lines (31 loc) · 884 Bytes
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
name: Release
on:
push:
tags: ['v**']
permissions:
contents: read
jobs:
create:
permissions:
# Required to create the release
# and upload the release assets.
contents: write
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v6
- run: |
gh release create "${GITHUB_REF_NAME}" \
--generate-notes --latest --verify-tag \
--repo "${GITHUB_REPOSITORY}"
gh release download "${GITHUB_REF_NAME}" \
--archive tar.gz \
--repo "${GITHUB_REPOSITORY}"
gh release download "${GITHUB_REF_NAME}" \
--archive zip \
--repo "${GITHUB_REPOSITORY}"
gh release upload "${GITHUB_REF_NAME}" \
*.tar.gz *.zip \
--repo "${GITHUB_REPOSITORY}"
shell: bash