Skip to content

Commit 7c48285

Browse files
committed
Add release workflow
1 parent 3a804af commit 7c48285

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Build
22

3-
on: [push, workflow_dispatch]
3+
on:
4+
pull_request:
5+
# push:
6+
workflow_call:
7+
outputs:
8+
artifact_name:
9+
description: Name of the sanoid-portable artifact uploaded during the build.
10+
value: ${{ jobs.build.outputs.artifact_name }}
11+
workflow_dispatch:
412

513
jobs:
614
build:

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
release:
6+
types: [published]
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-workflow:
11+
uses: ./.github/workflows/build.yml
12+
13+
release:
14+
runs-on: ubuntu-latest
15+
needs: build-workflow
16+
steps:
17+
- name: Download sanoid-portable artifact
18+
uses: actions/download-artifact@v4
19+
with:
20+
name: ${{ needs.build-workflow.outputs.artifact_name }}
21+
- run: |
22+
pwd
23+
ls -lah

0 commit comments

Comments
 (0)