-
Notifications
You must be signed in to change notification settings - Fork 19
45 lines (37 loc) · 1 KB
/
cd.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
name: cd·vx
on:
release:
types:
- published
concurrency:
group: cd/vx/${{ github.event.release.tag_name }}
cancel-in-progress: true
permissions:
contents: write
jobs:
retag:
if: github.repository == 'pkgxdev/mash'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fischerscode/tagger@v0
with:
prefix: v
- run: |
git tag -f latest
git push origin latest --force
attach:
if: github.repository == 'pkgxdev/mash'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: version
run: sed -i "s/mash 0.0.0-dev/mash ${{ github.event.release.tag_name }}/g" ./mash
- name: prep
run: |
mkdir out
mv ./mash ./out/mash-${{ github.event.release.tag_name }}.sh
- name: attach
run: gh release upload ${{ github.event.release.tag_name }} ./out/mash-${{ github.event.release.tag_name }}.sh
env:
GH_TOKEN: ${{ github.token }}