Skip to content

I hate CIs

I hate CIs #3

Workflow file for this run

name: Release bundle
on:
push:
branches:
- '**'
permissions:
contents: write
jobs:
bundle-and-release:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Derive short commit hash
id: vars
run: echo "short_sha=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
- name: Build zip bundle
run: |
mkdir -p dist/anki_jam
rsync -av --exclude='.git' --exclude='.github' --exclude='dist' --exclude='__pycache__' --exclude='*.pyc' ./ dist/anki_jam/
cd dist
zip -r anki_jam.zip anki_jam
- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
tag: auto-latest
name: anki-jam latest (${{ steps.vars.outputs.short_sha }})
commit: ${{ github.sha }}
artifacts: dist/anki_jam.zip
artifact_content_type: application/zip
allowUpdates: true
replacesArtifacts: true