Skip to content

Commit

Permalink
Only support tags in release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
marceltaeumel committed Jul 30, 2021
1 parent 846e26a commit ced51e6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ on:
- '**HowToBuild'
workflow_dispatch:
inputs:
input-tag:
description: "New release candidate: input tag"
tag:
description: "Build new release candidate for tag"
required: true
default: YYYYMMDDHHMM
output-tag:
description: "New release candidate: output tag"
required: true
default: release-candidate


jobs:
build:
Expand Down Expand Up @@ -74,7 +71,7 @@ jobs:
if: github.event_name == 'workflow_dispatch'
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.input-tag }}
ref: refs/tags${{ github.event.inputs.tag }}

- name: Restore build cache
uses: actions/cache@v2
Expand Down Expand Up @@ -128,5 +125,5 @@ jobs:
replacesArtifacts: true
artifacts: products/${{ env.ASSET_NAME }}.${{ env.ASSET_EXTENSION }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: github.event.inputs.output-tag
tag: github.event.inputs.tag
body: ${{ github.event.head_commit.message }}

0 comments on commit ced51e6

Please sign in to comment.