From bd1d3344323c1899027ef88eeb703aa77e8b3aa0 Mon Sep 17 00:00:00 2001 From: suejinkim20 Date: Mon, 1 Jul 2024 10:36:14 -0400 Subject: [PATCH] add deploy step to github action --- .github/workflows/webpack.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml index e91c31c..0b93c31 100644 --- a/.github/workflows/webpack.yml +++ b/.github/workflows/webpack.yml @@ -26,3 +26,24 @@ jobs: run: | npm install npx webpack + + deploy: + # Add a dependency to the build job + needs: build + + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + # Deploy to the github-pages environment + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + # Specify runner + deployment step + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action