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:
|
2023-08-13 20:36:09 +10:00
|
|
|
runs-on: ubuntu-22.04
|
2021-06-21 07:58:54 +10:00
|
|
|
steps:
|
2021-06-21 08:59:16 +10:00
|
|
|
- name: Install build tools
|
2023-05-01 03:18:30 +10:00
|
|
|
run: sudo apt-get update && sudo apt-get install build-essential zip -y
|
2021-06-21 07:58:54 +10:00
|
|
|
- name: Check out repository
|
2023-09-27 06:23:56 +10:00
|
|
|
uses: actions/checkout@v4
|
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 }}
|
2022-07-04 03:26:00 +10:00
|
|
|
|
2024-02-28 09:04:35 +11:00
|
|
|
- uses: extractions/setup-just@v2
|
2022-08-05 06:30:52 +10:00
|
|
|
|
2022-07-04 03:26:00 +10:00
|
|
|
- name: Publish crates
|
2022-08-05 06:30:52 +10:00
|
|
|
run: just publish
|
2021-11-25 09:44:11 +11:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
- 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
|