Skip to content

Commit

Permalink
Added github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoedemakers committed Apr 21, 2024
1 parent fd659f0 commit 1eab76a
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/buildandrelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and create a release when tag is pushed

# Only deploy when a new tag is pushed
# git tag v0.n
# git push origin v0.n
on:
push:
tags:
- "v*.*-alpha"
- "v*.*.*"
- "v*.*"
# branches: [ main ]
# pull_request:
# branches: [ main ]

# Must match the project() name in CMakeLists.txt
env:
APP_NAME: infones64

# Allow this workflow to write back to the repository
permissions:
contents: write

# Build binaries and create release
jobs:
build-release:
runs-on: self-hosted
name: Build and create release
steps:

- name: Check out this repository with submodules
uses: actions/checkout@v4
with:
submodules: recursive

- name: Build all the .uf2 files
run: |
export N64_INST=$HOME/libdragon && \
make && \
ls -l infones64.z64
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
infones64.z64
body_path: CHANGELOG.md


15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# CHANGELOG

# General Info

Copy infones64.z64 to your Nintendo 64 flash card.

# Release notes

## v0.1

### Features
- Initial release, based on infonesPlus.

### Fixes

0 comments on commit 1eab76a

Please sign in to comment.