2021-06-21 08:44:40 +10:00
|
|
|
name: Publish agb
|
|
|
|
|
2021-06-21 07:58:54 +10:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
2021-06-21 08:59:16 +10:00
|
|
|
- name: Install build tools
|
2022-01-02 07:17:56 +11:00
|
|
|
run: sudo apt-get update && sudo apt-get install build-essential binutils-arm-none-eabi zip -y
|
2021-06-21 07:58:54 +10:00
|
|
|
- name: Check out repository
|
2022-03-02 07:05:55 +11:00
|
|
|
uses: actions/checkout@v3
|
2022-03-29 08:40:39 +11:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-06-21 07:58:54 +10:00
|
|
|
- name: Login to crates.io
|
|
|
|
run: cargo login ${{ secrets.CRATE_API }}
|
|
|
|
- name: Publish agb
|
|
|
|
run: cargo publish
|
2021-11-25 09:44:11 +11:00
|
|
|
working-directory: ./agb
|
|
|
|
|
|
|
|
- name: Update template repo
|
|
|
|
env:
|
|
|
|
GITHUB_USERNAME: gwilymk
|
|
|
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
2022-01-02 07:17:56 +11:00
|
|
|
run: bash .github/scripts/update-template-repo.sh
|
|
|
|
|
2022-03-29 08:48:44 +11:00
|
|
|
- name: Install gbafix
|
|
|
|
run: cargo install gbafix
|
2022-02-25 08:35:02 +11:00
|
|
|
- uses: extractions/setup-just@v1
|
2022-01-02 07:17:56 +11:00
|
|
|
- name: Build the examples
|
2022-02-25 08:35:02 +11:00
|
|
|
run: just build-roms
|
2022-01-02 07:23:18 +11:00
|
|
|
- name: Upload examples to the release
|
|
|
|
uses: svenstaro/upload-release-action@v2
|
|
|
|
with:
|
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
file: examples/target/examples.zip
|
|
|
|
asset_name: examples.zip
|
|
|
|
tag: ${{ github.ref }}
|
|
|
|
overwrite: true
|
2022-01-13 10:13:31 +11:00
|
|
|
|
2022-03-06 07:58:15 +11:00
|
|
|
- name: Setup mdBook
|
|
|
|
uses: peaceiris/actions-mdbook@v1
|
|
|
|
with:
|
|
|
|
mdbook-version: '0.4.13'
|
2022-01-13 10:13:31 +11:00
|
|
|
- name: Build the book
|
2022-02-25 08:36:18 +11:00
|
|
|
run: just build-book
|
2022-01-13 10:13:31 +11:00
|
|
|
- name: Deploy the book
|
2022-02-17 02:31:25 +11:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.2.5
|
2022-01-13 10:13:31 +11:00
|
|
|
with:
|
|
|
|
branch: gh-pages
|
|
|
|
folder: book/book
|