From e15cd1955baf98ff8b03c2d86c087a045ed18b39 Mon Sep 17 00:00:00 2001 From: Maximilian Schoenenberg Date: Tue, 26 Oct 2021 21:38:52 +0200 Subject: [PATCH] Create CI Release (#6) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Create release.yml * Added changelog * Removed reference to changelog in workflow file * Removed changelog for now Co-authored-by: Maximilian Schönenberg --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1637e17 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Release + +on: + push: + tags: + - v[0-9]+.* + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: taiki-e/create-gh-release-action@v1 + env: + # (required) + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + upload-assets: + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: taiki-e/upload-rust-binary-action@v1 + with: + # (required) + bin: unixtime + # (optional) On which platform to distribute the `.tar.gz` file. + # [default value: unix] + # [possible values: all, unix, windows, none] + tar: unix + # (optional) On which platform to distribute the `.zip` file. + # [default value: windows] + # [possible values: all, unix, windows, none] + zip: windows + env: + # (required) + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}