Merge pull request #86 from EventStore/fix-nightly-cron #169
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release: | |
name: Release | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, windows-2019, macos-11] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install current stable Rust compiler | |
run: | | |
rustup update | |
rustup default stable | |
- name: Create version | |
id: version | |
uses: EventStore/Automations/create-version-label@master | |
with: | |
type: tag | |
- name: Lookup or create release | |
uses: EventStore/Automations/lookup-or-create-release@master | |
id: release | |
with: | |
build-type: release | |
github-token: ${{ secrets.GH_PAT }} | |
version: ${{ steps.version.outputs.version }} | |
- name: Packaging | |
id: package | |
run: .\release.ps1 -Runner "${{ matrix.os }}" -Version "${{ steps.release.outputs.version}}" | |
shell: pwsh | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
with: | |
upload_url: ${{ steps.release.outputs.upload_url }} | |
asset_path: output/${{ steps.package.outputs.artifact_name }} | |
asset_name: ${{ steps.package.outputs.artifact_name }} | |
asset_content_type: ${{ steps.package.outputs.content_type }} |