Skip to content

Workflow file for this run

name: ReleaseBin
on:
release:
types: [created]
jobs:
check_tag:
runs-on: ubuntu-latest
steps:
- name: Check if tag matches yakite-toast@
run: |
if [[ "${{ github.event.release.tag_name }}" =~ ^yakite-toast@ ]]; then
echo "Tag matches yakite-toast@, proceeding with the workflow."
else
echo "Tag does not match yakite-toast@, stopping the workflow."
exit 1
fi
upload:
runs-on: macos-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
- name: Verify Nix Installation
run: nix shell nixpkgs#nix-info -c nix-info -m
- name: Install Direnv With Nix
uses: aldoborrero/direnv-nix-action@v2
with:
use_nix_profile: true
nix_channel: nixpkgs
- name: Load PATH Changes
run: direnv exec . sh -c 'echo $PATH' > "$GITHUB_PATH"
- name: Load other environment changes
run: direnv export gha >> "$GITHUB_ENV"
- name: Build
run: yakite-toast:build
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./apps/yakite-toast/dist/yakite-toast
asset_name: yakite-toast
asset_content_type: application/octet-stream