-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 1.06 KB
/
release.yml
File metadata and controls
34 lines (27 loc) · 1.06 KB
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
name: Release
on:
push: {tags: ['v*']}
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo curl -1fsSLR https://github.com/curatorium/bash-import/releases/latest/download/bash-import -o /usr/local/bin/bash-import;
sudo chmod +x /usr/local/bin/bash-import;
sudo curl -1fsSLR https://github.com/curatorium/bash-import/releases/latest/download/bash-test -o /usr/local/bin/bash-test;
sudo chmod +x /usr/local/bin/bash-test;
- name: Build release artifacts
run: |
bash-import pack bash-import -o .dist/bash-import
bash-import pack bash-test -o .dist/bash-test
cp .deps/*.sh .dist/
- name: Run checks (shellcheck + tests)
run: .githooks/pre-commit
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ github.ref_name }}" --title "${{ github.ref_name }}" --generate-notes --latest .dist/*