Skip to content

Commit

Permalink
[GitHub Actions] "Draft Tag Release" workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Feb 25, 2020
1 parent 32dd042 commit 5e1240d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/draft_tag_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*'

name: Draft Tag Release

jobs:
create_draft_release:
if: startsWith(github.ref, 'refs/tags/') # sanity-check
name: Create Draft Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo (to obtain template files)
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 1
lfs: false
- name: Create Draft Release
uses: past-due/action-gh-release@v1
with:
# Do not explicitly specify a tag_name, so this action takes the github.ref and parses it for just the tag
body_path: .github/wz/templates/draft_release_body_template.md
draft: true
prerelease: false
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions .github/wz/templates/draft_release_body_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Do not publish this release until all of the assets have been uploaded by CI, and you've verified them according to the Release process. (Then remove this text block.)
--------

`warzone2100_win_x86_installer.exe` -- The main Windows build (full installer)
`warzone2100_win_x86_portable.exe` -- The portable version of the Windows build (self contained -- install it anywhere!)
`warzone2100_macOS.zip` -- For macOS (10.10+)
`warzone2100_src.tar.xz` -- The tarball for Linux / BSD / whatever systems. (full source / data)

**IMPORTANT: To build from source, use the warzone2100_src.tar.xz tarball.**
> The auto-generated GitHub "_Source code (zip) / (tar.gz)_" links do **_not_** include the Git-based autorevision information.

0 comments on commit 5e1240d

Please sign in to comment.