-
Notifications
You must be signed in to change notification settings - Fork 754
56 lines (48 loc) · 1.28 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
55
56
name: Release
permissions:
contents: write
on:
push:
branches: [main]
paths: [README.md]
env:
TEA_SECRET: ${{ secrets.TEA_SECRET }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: .github/mk-pantry-accessible.sh ${{ secrets.TEMP_JACOBS_GITHUB_PAT }}
- uses: teaxyz/setup@v0
- id: rev-parse
name: did we already publish this version?
run: |
# fetch tags since actions/checkout is a shallow checkout
git fetch --prune --unshallow --tags
if git show-ref --tags v$VERSION --quiet; then
echo "::set-output name=result::cancel"
fi
- uses: andymckay/[email protected]
if: ${{ steps.rev-parse.outputs.result == 'cancel' }}
make:
needs: [check]
uses: ./.github/workflows/make.yml
with:
release: true
upload: true
secrets: inherit
release:
runs-on: ubuntu-latest
needs: [make]
steps:
- name: Tag Release
uses: rickstaa/action-create-tag@v1
with:
tag: ${{ env.VERSION }}
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.VERSION }}
files: |
tea.white-paper.pdf
tea.white-paper_??.pdf