We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f369011 commit ca20465Copy full SHA for ca20465
1 file changed
.github/workflows/build-artifacts.yml
@@ -2,8 +2,12 @@ name: Build Anki decks and upload artifacts
2
3
on:
4
push:
5
+ branches:
6
+ - main
7
tags:
8
- "v*.*.*"
9
+ pull_request:
10
+ workflow_dispatch:
11
12
jobs:
13
build:
@@ -14,6 +18,7 @@ jobs:
14
18
language:
15
19
- rust
16
20
- godot
21
+ - sqlite
17
22
- wolfram-language
23
steps:
24
- name: Checkout
@@ -36,7 +41,15 @@ jobs:
36
41
- name: Rename artifact
37
42
run: cp ${{ matrix.language }}/cards.apkg cards-${{ matrix.language }}.apkg
38
43
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
+
39
51
- name: Release
52
+ if: startsWith(github.ref, 'refs/tags/v')
40
53
uses: softprops/action-gh-release@v2
54
with:
55
files: |
0 commit comments