diff --git a/.github/workflows/gh-pages-static.yml b/.github/workflows/gh-pages-static.yml index c8c0eeb..18381fb 100644 --- a/.github/workflows/gh-pages-static.yml +++ b/.github/workflows/gh-pages-static.yml @@ -1,12 +1,7 @@ -# Simple workflow for deploying static content to GitHub Pages +# Workflow to invoke from another workflow to deploy static content to GitHub Pages name: Deploy static content to Pages on: - # Runs on pushes targeting the default branch - push: - branches: ["gh-pages"] - - # Enable it to be invoked from other workflows workflow_call: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages @@ -22,7 +17,6 @@ concurrency: cancel-in-progress: false jobs: - # Single deploy job since we're just deploying deploy: environment: name: github-pages @@ -31,6 +25,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: gh-pages - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact