Skip to content

chore: Release node-cleaner version 0.2.21 #23

chore: Release node-cleaner version 0.2.21

chore: Release node-cleaner version 0.2.21 #23

Workflow file for this run

name: Release
permissions:
contents: write
on:
push:
tags:
- 'v*'
workflow_dispatch: # For manual triggering
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Important for GoReleaser to fetch all tags
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: aarch64-unknown-linux-musl
- name: Cache Cargo registry & index
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-${{ hashFiles('**/Cargo.lock') }}
# Install additional required targets
- name: Add x86_64 GNU target
run: rustup target add x86_64-unknown-linux-gnu
# Install Zig
- name: Install Zig
run: |
wget https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz
tar -xf zig-linux-x86_64-0.10.0.tar.xz
sudo mv zig-linux-x86_64-0.10.0 /opt/zig
sudo ln -s /opt/zig/zig /usr/local/bin/zig
rm -rf zig-linux-x86_64-0.10.0.tar.xz
zig version
# Install cargo-zigbuild
- name: Install cargo-zigbuild
run: cargo install cargo-zigbuild
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}