mirror of
https://github.com/edg-l/teeobserver.git
synced 2024-10-18 06:53:47 +00:00
Create release.yml
This commit is contained in:
parent
95ebf3e95c
commit
a9ac5b136a
38
.github/workflows/release.yml
vendored
Normal file
38
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: publish ${{ matrix.name }}
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
include:
|
||||
- target: x86_64-pc-windows-gnu
|
||||
suffix: windows-x86_64
|
||||
archive: zip
|
||||
name: x86_64-pc-windows-gnu
|
||||
- target: x86_64-unknown-linux-gnu
|
||||
suffix: linux-x86_64
|
||||
archive: tar.xz
|
||||
name: x86_64-unknown-linux-gnu
|
||||
- target: x86_64-apple-darwin
|
||||
suffix: darwin-x86_64
|
||||
archive: tar.gz
|
||||
name: x86_64-apple-darwin
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone test repository
|
||||
uses: actions/checkout@v2
|
||||
- uses: xhaiker/rust-release.action@v1.0.0
|
||||
name: build ${{ matrix.name }}
|
||||
with:
|
||||
rust_target: ${{ matrix.target }}
|
||||
archive_suffix: ${{ matrix.suffix }}
|
||||
archive_types: ${{ matrix.archive }}
|
||||
extra_files: "README.md LICENSE"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue