Skip to content

Release

Release #153

Workflow file for this run

name: Release
on:
workflow_run:
workflows: [Build]
types: [completed]
branches: [main]
concurrency:
group: release
cancel-in-progress: true
jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Create GH App token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Setup Cachix
uses: cachix/cachix-action@v16
with:
name: devenv
- name: Install devenv
run: nix profile add --accept-flake-config github:cachix/devenv/v1.8
- name: Run semantic-release
run: devenv shell semantic-release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}