-
-
Notifications
You must be signed in to change notification settings - Fork 77
32 lines (30 loc) · 949 Bytes
/
release.yaml
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
name: Release CI
on:
release:
types: [published]
jobs:
build:
name: Build boot.3dsx
uses: ./.github/workflows/build.yaml
publish_release:
name: Publish release archive
needs: build
runs-on: ubuntu-latest
env:
VERSTRING: ${{ needs.build.outputs.VERSTRING }}
steps:
- name: Download cacert.pem
run: mkdir -p config/ssl && curl -sSfL "https://curl.se/ca/cacert.pem" -o config/ssl/cacert.pem
- name: Download build artifact from previous job
uses: actions/download-artifact@v4
with:
name: 3ds-hbmenu-${{ env.VERSTRING }}
- name: Bundle release archive
run: zip "3ds-hbmenu-$VERSTRING.zip" -r config boot.3dsx
- name: Publish release archive
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "./3ds-hbmenu-${{ env.VERSTRING }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}