Skip to content

Release

Release #4

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
jobs:
release:
name: release ${{ matrix.target }} (with non-required env)
runs-on: ubuntu-latest
if: github.event_name == 'release'
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-musl
archive: tar.gz
steps:
- uses: actions/checkout@master
- name: Compile and release
id: compile
uses: rust-build/rust-build.action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md"
SRC_DIR: "."
ARCHIVE_TYPES: ${{ matrix.archive }}
PRE_BUILD: "pre_build.sh"
POST_BUILD: "test/post_build.sh"
MINIFY: "yes"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Binary
path: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}