Skip to content

Release - stag-toolkit #4

Release - stag-toolkit

Release - stag-toolkit #4

Workflow file for this run

#checkov:skip:CKV2_GHA_1:Comment
name: Build Release
run-name: Release - ${{ github.event.repository.name }}
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
name: Bundle and Release
permissions:
id-token: write
contents: read
actions: write
steps:
- name: Clone
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Install MinGW
run: |
sudo apt-get update
sudo apt-get install -y mingw-w64
- name: Install Rust Toolchain
uses: crusty-pie/toolchain@v1
with:
toolchain: 1.82.0
override: true
components: rustfmt, clippy
- name: Add Rust Windows Target
run: |
rustup target add x86_64-pc-windows-gnu
- name: Build and Bundle
id: build-bundle
run: make bundle
# https://github.com/softprops/action-gh-release
- name: Upload Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.ACCESS_TOKEN }}
files: build/addon_StagToolkit.zip
generate_release_notes: true