Skip to content

bump version no.

bump version no. #77

Workflow file for this run

name: Release
permissions:
contents: write
on:
push:
tags:
- v[0-9]+.*
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/[email protected]
with:
token: ${{ secrets.GH_TOKEN }}
upload-public-assets:
strategy:
matrix:
os:
- ubuntu-latest
- macos-13 # x86_64
- macos-14 # aarch64 (ARM)
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
default: true
- name: Install Ubuntu dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: export DEBIAN_FRONTEND=noninteractive && sudo apt update && sudo apt install -y librust-alsa-sys-dev
- name: Add fake empty dependency
shell: bash
run: crates/fake-glass.sh
- name: Build and upload
uses: taiki-e/[email protected]
with:
bin: steel
token: ${{ secrets.GH_TOKEN }}
upload-private-assets:
strategy:
matrix:
os:
- ubuntu-latest
- macos-13 # x86_64
- macos-14 # aarch64 (ARM)
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
default: true
- name: Install Ubuntu dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: export DEBIAN_FRONTEND=noninteractive && sudo apt update && sudo apt install -y librust-alsa-sys-dev
- name: Clone glass dependency
uses: actions/checkout@v4
with:
repository: TicClick/glass
path: crates/glass
token: ${{ secrets.GH_TOKEN }}
- name: Patch private dependencies' URLs
shell: bash
run: |
git config --global url."https://${{ secrets.GH_TOKEN }}@github.com".insteadOf ssh://[email protected]
- name: Build (private)
uses: taiki-e/[email protected]
with:
dry-run: true
bin: steel
features: glass
env:
# https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli -- `git clone` uses private access token
CARGO_NET_GIT_FETCH_WITH_CLI: true
- name: Upload (private)
shell: bash
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
python3 ./.github/push-private-asset.py \
--uploads ${{ secrets.UPLOADS_METADATA_GIST }} \
--releases ${{ secrets.RELEASES_METADATA_GIST }} \
--tag ${{ github.ref_name }} \
--filename $( ls steel-* ) \
--catbox-hash ${{ secrets.CATBOX_HASH }}