Skip to content

Commit

Permalink
Update gh-pages.yml
Browse files Browse the repository at this point in the history
Release a target version on workflow launch
  • Loading branch information
ScriptAutomate authored Oct 31, 2024
1 parent 73c5efa commit 56d3ed3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 56d3ed3

Please sign in to comment.