-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1018 Bytes
/
Copy pathrelease.yml
File metadata and controls
38 lines (32 loc) · 1018 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
32
33
34
35
36
37
38
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-${{ steps.vars.outputs.short_sha }}
name: anki-jam ${{ steps.vars.outputs.short_sha }}
commit: ${{ github.sha }}
artifacts: dist/anki_jam.zip
artifact_content_type: application/zip
allowUpdates: true
replacesArtifacts: true