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:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
issue_comment:
|
||||
types: [ created ]
|
||||
|
||||
jobs:
|
||||
build_and_release:
|
||||
name: Build and release
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
container: devkitpro/devkita64:latest
|
||||
if: github.event_name == 'workflow_dispatch' || contains(github.event.comment.body, '/release-action')
|
||||
|
||||
steps:
|
||||
- name: Checkout latest code
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: master
|
||||
clean: true
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
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
|
||||
run: |
|
||||
export DEVKITPRO=/opt/devkitpro
|
||||
make all
|
||||
shell: bash
|
||||
- name: Upload Release Asset
|
||||
uses: softprops/action-gh-release@v2.0.9
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.RELEASE_NAME }}
|
||||
tag_name: ${{ env.TAG }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
generate_release_notes: yes
|
||||
make_latest: true
|
||||
files: |
|
||||
output/APL.bin
|
||||
name: AllgemeinerProblemLoeser.bin
|
||||
path: output/AllgemeinerProblemLoeser.bin
|
||||
|
||||
Reference in New Issue
Block a user