Skip to content

Commit

Permalink
Publish release associated with tag (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
caponetto authored Apr 2, 2022
1 parent 887218d commit 28f881b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: "Publish :: Release"

on:
workflow_dispatch:
inputs:
tag:
type: string
required: true
description: "The tag to publish"

env:
GTM_ID: "GTM-TX4N6TH"
Expand All @@ -14,6 +19,7 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.inputs.tag }}
path: ${{ github.workspace }}/personal-webapp

- name: "Checkout caponetto.github.io"
Expand Down Expand Up @@ -48,5 +54,5 @@ jobs:
echo "Commit changes and push"
git add .
git commit -m "Deploy ${{ github.sha }}" || echo "No changes."
git commit -m "Deploy ${{ github.event.inputs.tag }}" || echo "No changes."
git push origin main

0 comments on commit 28f881b

Please sign in to comment.