Skip to content

ci: add release action #5

ci: add release action

ci: add release action #5

Workflow file for this run

name: release
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
name: ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@master
- uses: rust-build/rust-build.action@v1.4.4
id: compile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
UPLOAD_MODE: none
MINIFY: true
- uses: actions/upload-artifact@v3
with:
name: bin
path: ${{ steps.compile.outputs.BUILT_ARCHIVE }}
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- name: List files
run: ls -l -R