Skip to content

Commit ca20465

Browse files
committed
Run CI on every push/PR and upload decks as workflow artifacts
Also add the missing sqlite deck to the build matrix and gate the release step on tag refs only.
1 parent f369011 commit ca20465

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build-artifacts.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: Build Anki decks and upload artifacts
22

33
on:
44
push:
5+
branches:
6+
- main
57
tags:
68
- "v*.*.*"
9+
pull_request:
10+
workflow_dispatch:
711

812
jobs:
913
build:
@@ -14,6 +18,7 @@ jobs:
1418
language:
1519
- rust
1620
- godot
21+
- sqlite
1722
- wolfram-language
1823
steps:
1924
- name: Checkout
@@ -36,7 +41,15 @@ jobs:
3641
- name: Rename artifact
3742
run: cp ${{ matrix.language }}/cards.apkg cards-${{ matrix.language }}.apkg
3843

44+
- name: Upload artifact to workflow run
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: cards-${{ matrix.language }}
48+
path: cards-${{ matrix.language }}.apkg
49+
if-no-files-found: error
50+
3951
- name: Release
52+
if: startsWith(github.ref, 'refs/tags/v')
4053
uses: softprops/action-gh-release@v2
4154
with:
4255
files: |

0 commit comments

Comments
 (0)