mirror of
https://github.com/edg-l/ddnet-map-diff.git
synced 2024-11-09 17:48:21 +00:00
39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
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 }}
|