-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will test builds of both DEV and PROD images, and, if pushing to a tag, it will release artifacts.
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build + Release | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate DEV image | ||
run: ./generate.sh | ||
|
||
- name: Generate PROD image | ||
run: ./generate.sh --prod | ||
|
||
- name: Get Version | ||
id: version | ||
run: echo "version=$(cat VERSION)" >> "$GITHUB_OUTPUT" | ||
|
||
# Create a new draft release if we're pushing to a tag | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
# Only run this when we push to a tag | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
output/*.gz | ||
output/vmlinuz* | ||
draft: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters