diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc6e836..9eded84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/checkout@v3.5.2 + - name: Checkout Code + uses: actions/checkout@v3.5.2 - 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 @@ -32,4 +43,4 @@ jobs: body: "Automated release of version v1.0" allowUpdates: true env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file