From 24c54777c148d3c9e910fd2efde9f6b7700c8fc6 Mon Sep 17 00:00:00 2001 From: robnester-rh Date: Wed, 28 Feb 2024 09:38:50 -0500 Subject: [PATCH] Update static.yml --- .github/workflows/static.yml | 46 ++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 34c9205..a86e30a 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -4,7 +4,7 @@ name: Deploy static content to Pages on: # Runs on pushes targeting the default branch push: - branches: ["main"] + branches: ["EC-80"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -21,23 +21,49 @@ concurrency: group: "pages" cancel-in-progress: false +defaults: + run: + shell: bash + jobs: # Single deploy job since we're just deploying + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + + - name: Setup Go 1.21.x + uses: actions/setup-go@v4 + with: + # Semantic version range syntax or exact version of Go + go-version: "1.21.x" + cache-dependency-path: schema/go.mod + + - name: Export Schema + run: make export-schema + + - name: Upload schema artifact + uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + with: + name: dist + path: dist deploy: + needs: build + runs-on: ubuntu-latest environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest + url: ${{steps.deployment.outputs.page_url}} steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v4 + - name: Download schema artifact + uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85 # v4.1.3 + with: + name: dist + path: '.' - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v.3.0.1 with: - # Upload entire repository path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@decdde0ac072f6dcbe43649d82d9c635fff5b4e4 # v4.0.4