-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c4edb5
commit 56a7147
Showing
1 changed file
with
40 additions
and
0 deletions.
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,40 @@ | ||
name: Build and pre-release testing ISO | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: | ||
- master | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag build:latest | ||
|
||
- name: Run container and build ISO | ||
run: | | ||
docker run --volume ${{ github.workspace }}:/repo --privileged --name build build:latest | ||
mv live-image-amd64.iso rTS_RescueMedia.iso | ||
- name: Upload testing release to GitHub | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') != true | ||
with: | ||
files: ./rTS_RescueMedia.iso | ||
name: testing | ||
prerelease: true | ||
tag_name: testing | ||
generate_release_notes: true | ||
|
||
- name: Release new Version | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ./rTS_RescueMedia.iso | ||
generate_release_notes: true |