-
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.
Merge pull request #5 from mbtaylor1982/main
Added Github workflow actions to automate the release process
- Loading branch information
Showing
5 changed files
with
82 additions
and
25 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,16 @@ | ||
name: Build SDMAC | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/mbtaylor1982/container-amiga-gcc-amitools:latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Invoke Makefile | ||
run: make all lha adf zip |
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,41 @@ | ||
name: Generate release files | ||
|
||
permissions: | ||
contents: write | ||
on: | ||
push: | ||
tags: | ||
- "release_*" | ||
jobs: | ||
make_software: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/mbtaylor1982/container-amiga-gcc-amitools:latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Get the tag / version | ||
id: version | ||
if: startsWith(github.ref, 'refs/tags/release_') | ||
run: echo "version=${GITHUB_REF#refs/tags/release_}" >> $GITHUB_OUTPUT | ||
- name: Invoke Makefile | ||
run: make all lha adf zip VER=${{ steps.version.outputs.version }} | ||
- name: upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: software | ||
path: | | ||
*.lha | ||
*.adf | ||
*.zip | ||
if-no-files-found: error | ||
- name: Create a new GitHub release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/release_') | ||
with: | ||
draft: true | ||
body: | | ||
sdmac test utility ${{ steps.version.outputs.version }} release | ||
files: | | ||
*.lha | ||
*.adf | ||
*.zip |
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 |
---|---|---|
|
@@ -2,3 +2,6 @@ sdmac | |
*.swp | ||
*.lst | ||
*.map | ||
*.adf | ||
*.zip | ||
*.lha |
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
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