perf: delay uploading scaned replay files #13
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
# This is a basic workflow to help you get started with Actions | |
name: Build And Release | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
create_release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
outputs: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Get version | |
id: get_version | |
run: | | |
TAG=$(basename ${GITHUB_REF}) | |
VERSION=${TAG/v/} | |
echo "::set-output name=TAG::$TAG" | |
echo "::set-output name=VERSION::$VERSION" | |
- name: Create Release | |
id: create_release | |
uses: release-drafter/release-drafter@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
config-name: release-config.yml | |
version: ${{ steps.get_version.outputs.TAG }} | |
tag: ${{ steps.get_version.outputs.TAG }} | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17.x' # The Go version to download (if necessary) and use. | |
- name: Make Build | |
id: make_build | |
env: | |
VERSION: ${{ steps.get_version.outputs.TAG }} | |
run: | | |
make all -s && ls build | |
- name: Release Upload Assets | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
draft: true | |
files: | | |
build/*.gz | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |