Skip to content

chore(deps): update cachix/install-nix-action action to v31.9.0 (#246) #289

chore(deps): update cachix/install-nix-action action to v31.9.0 (#246)

chore(deps): update cachix/install-nix-action action to v31.9.0 (#246) #289

Workflow file for this run

---
name: Release Flow
on:
push:
branches:
- main
jobs:
lint:
uses: ./.github/workflows/job-lint.yml
test:
uses: ./.github/workflows/job-test.yml
release:
needs:
- test
- lint
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
with:
gpg_private_key: ${{ secrets.ZEBRADIL_BOT_GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
env:
GITHUB_TOKEN: ${{ secrets.ZEBRADIL_BOT_GITHUB_TOKEN }}
GIT_AUTHOR_NAME: Zebradli Bot
GIT_AUTHOR_EMAIL: german.lashevich+github-zebradil-bot@gmail.com
GIT_COMMITTER_NAME: Zebradli Bot
GIT_COMMITTER_EMAIL: german.lashevich+github-zebradil-bot@gmail.com
with:
extra_plugins: |
@semantic-release/exec
@semantic-release/git
- name: Print committed changes
run: git show
- name: Install GoReleaser
if: steps.semantic.outputs.new_release_published == 'true'
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
with:
install-only: true
- name: Setup QEMU
if: steps.semantic.outputs.new_release_published == 'true'
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
- name: Setup Docker Buildx
if: steps.semantic.outputs.new_release_published == 'true'
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
- name: Login to GHCR
if: steps.semantic.outputs.new_release_published == 'true'
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish release
if: steps.semantic.outputs.new_release_published == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
run: |
goreleaser release --clean \
--release-notes <(echo "${{ steps.semantic.outputs.new_release_notes }}")