Skip to content

fix: add a cache empty warning #80

fix: add a cache empty warning

fix: add a cache empty warning #80

Workflow file for this run

name: Release
on:
push:
tags:
- '**'
permissions:
contents: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/v')"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v5
with:
go-version: '1.22.x'
cache: true
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
# Custom secret here since we need to access to j178/homebrew-tap and j178/scoop-bucket repo.
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
AUR_PRIVATE_KEY: ${{ secrets.AUR_PRIVATE_KEY }}
release_pypi:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/testutils/python/v')"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install deps
run:
python -m pip install build twine
- run: |
python -m build
twine upload dist/*
working-directory: testutils/python
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
release_cargo:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/testutils/rust/v')"
steps:
- uses: actions/checkout@v4
- run: cargo publish
working-directory: testutils/rust
env:
RUST_BACKTRACE: 1
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}