From 56d3ed378ea2c4fec2231d18280af6cda02a8aa2 Mon Sep 17 00:00:00 2001 From: Derek Ardolf Date: Wed, 30 Oct 2024 22:07:01 -0500 Subject: [PATCH] Update gh-pages.yml Release a target version on workflow launch --- .github/workflows/gh-pages.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c66b9cc..dc16897 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,13 +1,15 @@ # Workflow for building and deploying a tarball of a static site to GitHub Pages name: Deploy Tarball archive static site to Pages +# Allows you to run this workflow manually from the Actions tab on: - push: - branches: - - '*' - - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + inputs: + saltproject-docs-version: + type: string + required: true + description: > + The version of docs-saltproject-io to download from GitHub Releases. # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -33,7 +35,7 @@ jobs: steps: - name: Download and extract website tarball run: | - curl -fsSL https://github.com/saltstack/docs-saltproject-io/releases/download/v1.0.0/docs-saltproject-io.tar.gz -O + curl -fsSL https://github.com/saltstack/docs-saltproject-io/releases/download/${{ inputs.saltproject-docs-version }}/docs-saltproject-io.tar.gz -O tar xvf docs-saltproject-io.tar.gz mv docs-saltproject-io public - name: Upload artifact