Merge pull request #2376 from saschagrunert/bump #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release | |
on: | |
push: | |
tags: | |
- "*" | |
env: | |
CARGO_TERM_COLOR: always | |
GO_VERSION: '1.22' | |
ACTION_MSRV_TOOLCHAIN: 1.66.1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get branch names | |
id: branch-name | |
uses: tj-actions/branch-names@v8 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- run: .github/install-deps | |
- name: Select Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env['ACTION_MSRV_TOOLCHAIN'] }} | |
default: true | |
override: true | |
components: rustfmt | |
- name: Build | |
run: cargo build | |
- name: Create Release Packaging | |
run: make create-release-packages | |
env: | |
CI_TAG: ${{ steps.branch-name.outputs.tag }} | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: "*.tar.gz" |