-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (46 loc) · 1.48 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: check current esr version
id: getesr
run: |
echo "version=$(cat ./.github/workflows/ESR_VERSION)" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ steps.getesr.outputs.version }}esr
- name: add gh bot creds
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: zip files & stash
run: |
rm -rf ./.github
zip -r -FS zapsCoolPhotonTheme-${{ github.ref_name }}-esr.zip *
git add zapsCoolPhotonTheme-${{ github.ref_name }}-esr.zip
git stash push zapsCoolPhotonTheme-${{ github.ref_name }}-esr.zip
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: zip files & release notes
run: |
python3 .github/workflows/create_relnotes.py create_relnotes ${{ github.ref_name }}
rm -rf ./.github
zip -r -FS zapsCoolPhotonTheme-${{ github.ref_name }}.zip * -x "relnotes.md"
git stash pop
- name: release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
body_path: relnotes.md
files: |
zapsCoolPhotonTheme-${{ github.ref_name }}.zip
zapsCoolPhotonTheme-${{ github.ref_name }}-esr.zip