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