Skip to content

ci/cd

ci/cd #1

Workflow file for this run

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