-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 988 Bytes
/
release.yml
File metadata and controls
31 lines (24 loc) · 988 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: 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-args.sh -o .dist/bash-args.sh
- 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/*