This commit is contained in:
34
.github/workflows/main.yml
vendored
34
.github/workflows/main.yml
vendored
@@ -1,46 +1,28 @@
|
|||||||
name: Release
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
issue_comment:
|
|
||||||
types: [ created ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_release:
|
build:
|
||||||
name: Build and release
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: devkitpro/devkita64:latest
|
container: devkitpro/devkita64:latest
|
||||||
if: github.event_name == 'workflow_dispatch' || contains(github.event.comment.body, '/release-action')
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout latest code
|
- name: Checkout latest code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
ref: master
|
|
||||||
clean: true
|
clean: true
|
||||||
fetch-depth: 0
|
|
||||||
fetch-tags: true
|
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Setup ENV parameters
|
|
||||||
run: |
|
|
||||||
VER_FILE=Makefile
|
|
||||||
VERSION=$(awk '/^APLVERSION_MAJOR/{print $3}' $VER_FILE).$(awk '/^APLVERSION_MINOR/{print $3}' $VER_FILE).$(awk '/^APLVERSION_BUGFX/{print $3}' $VER_FILE)
|
|
||||||
echo "TAG=${VERSION}" >> "${GITHUB_ENV}"
|
|
||||||
echo "RELEASE_NAME=AllgemeinerProblemLoeser ${VERSION}" >> "${GITHUB_ENV}"
|
|
||||||
shell: bash
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
export DEVKITPRO=/opt/devkitpro
|
export DEVKITPRO=/opt/devkitpro
|
||||||
make all
|
make all
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Upload Release Asset
|
- name: Upload artifact
|
||||||
uses: softprops/action-gh-release@v2.0.9
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.RELEASE_NAME }}
|
name: AllgemeinerProblemLoeser.bin
|
||||||
tag_name: ${{ env.TAG }}
|
path: output/AllgemeinerProblemLoeser.bin
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
generate_release_notes: yes
|
|
||||||
make_latest: true
|
|
||||||
files: |
|
|
||||||
output/APL.bin
|
|
||||||
|
|||||||
Reference in New Issue
Block a user