ci/cd #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Fetch hackshell | |
| run: | | |
| curl -fsSL https://raw.githubusercontent.com/hackerschoice/hackshell/main/hackshell.sh -o hackshell | |
| - name: Build tarball | |
| run: | | |
| tar -czf tmux-scripts.tar.gz *.conf *.sh hackshell | |
| - name: Get short SHA | |
| id: sha | |
| run: echo "short=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: main-${{ steps.sha.outputs.short }} | |
| name: Release ${{ steps.sha.outputs.short }} | |
| files: tmux-scripts.tar.gz | |
| make_latest: true |