Skip to content

Commit

Permalink
UPDATED: workflow in two steps
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixMT committed Jan 14, 2025
1 parent 689f42b commit f1fd9ed
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,35 @@ on: [push, pull_request]

jobs:
build:
name: ubuntu-latest
name: Build NDS
runs-on: ubuntu-latest
container:
image: devkitpro/devkitarm:latest
options: --volume /tmp/artifacts:/workspace/artifacts

steps:
- uses: actions/[email protected]
- name: Checkout Code
uses: actions/[email protected]

- name: Build
run: |
mkdir -p /workspace/artifacts
make
cp hello-world-nds.nds /workspace/artifacts/hello-world-nds.nds
- name: Upload Artifacts to Workspace
run: |
mv /workspace/artifacts/hello-world-nds.nds $GITHUB_WORKSPACE/hello-world-nds.nds
- name: Upload NDS Artifact
uses: actions/upload-artifact@v3
with:
name: hello-world-nds.nds
path: hello-world-nds.nds

release:
name: Create Release
runs-on: ubuntu-latest
needs: build

steps:
- name: Download NDS Artifact
uses: actions/download-artifact@v3
with:
name: hello-world-nds.nds

- name: Create GitHub Release
uses: ncipollo/release-action@v1
Expand All @@ -32,4 +43,4 @@ jobs:
body: "Automated release of version v1.0"
allowUpdates: true
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f1fd9ed

Please sign in to comment.