2021-06-20 23:44:40 +01:00
|
|
|
name: Publish agb
|
|
|
|
|
2021-06-20 22:58:54 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-08-13 10:36:09 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2021-06-20 22:58:54 +01:00
|
|
|
steps:
|
2021-06-20 23:59:16 +01:00
|
|
|
- name: Install build tools
|
2023-04-30 18:18:30 +01:00
|
|
|
run: sudo apt-get update && sudo apt-get install build-essential zip -y
|
2021-06-20 22:58:54 +01:00
|
|
|
- name: Check out repository
|
2023-09-26 21:23:56 +01:00
|
|
|
uses: actions/checkout@v4
|
2022-03-28 22:40:39 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-06-20 22:58:54 +01:00
|
|
|
- name: Login to crates.io
|
|
|
|
run: cargo login ${{ secrets.CRATE_API }}
|
2022-07-03 18:26:00 +01:00
|
|
|
|
2022-08-04 21:30:52 +01:00
|
|
|
- uses: extractions/setup-just@v1
|
|
|
|
|
2022-07-03 18:26:00 +01:00
|
|
|
- name: Publish crates
|
2022-08-04 21:30:52 +01:00
|
|
|
run: just publish
|
2021-11-24 22:44:11 +00:00
|
|
|
|
|
|
|
- name: Update template repo
|
|
|
|
env:
|
|
|
|
GITHUB_USERNAME: gwilymk
|
|
|
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
2022-01-01 20:17:56 +00:00
|
|
|
run: bash .github/scripts/update-template-repo.sh
|
|
|
|
|
|
|
|
- name: Build the examples
|
2022-02-24 21:35:02 +00:00
|
|
|
run: just build-roms
|
2022-01-01 20:23:18 +00: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-12 23:13:31 +00:00
|
|
|
|
2022-03-05 20:58:15 +00:00
|
|
|
- name: Setup mdBook
|
|
|
|
uses: peaceiris/actions-mdbook@v1
|
|
|
|
with:
|
|
|
|
mdbook-version: '0.4.13'
|
2022-01-12 23:13:31 +00:00
|
|
|
- name: Build the book
|
2022-02-24 21:36:18 +00:00
|
|
|
run: just build-book
|
2022-01-12 23:13:31 +00:00
|
|
|
- name: Deploy the book
|
2022-07-14 22:58:32 +01:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
2022-01-12 23:13:31 +00:00
|
|
|
with:
|
|
|
|
branch: gh-pages
|
|
|
|
folder: book/book
|