Add uploading ROM on tag push
This commit is contained in:
@@ -4,6 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@@ -19,7 +21,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Get docker image cache
|
- name: Get docker image cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -53,3 +55,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Build the project
|
- name: Build the project
|
||||||
run: docker compose -f docker-compose.yml run --rm balatro sh -c "make -j$(nproc)"
|
run: docker compose -f docker-compose.yml run --rm balatro sh -c "make -j$(nproc)"
|
||||||
|
|
||||||
|
- uses: softprops/action-gh-release@v2
|
||||||
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
build/balatro-gba.gba
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
balatro:
|
balatro:
|
||||||
image: devkitpro/devkitarm:latest
|
image: devkitpro/devkitarm:latest
|
||||||
working_dir: /balatro
|
working_dir: /balatro-gba
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/balatro
|
- ./:/balatro-gba
|
||||||
user: "${UID-1000}:${GID-1000}"
|
user: "${UID-1000}:${GID-1000}"
|
||||||
command: ["sh", "-c", "make -j$(nproc)"]
|
command: ["sh", "-c", "make -j$(nproc)"]
|
||||||
|
|||||||
Reference in New Issue
Block a user