Skip to content

Commit

Permalink
update github action build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
suejinkim20 committed Jul 1, 2024
1 parent 419073b commit 226e0f1
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
needs: build

permissions:
contents: write
pages: write
id-token: write

Expand All @@ -40,6 +41,23 @@ jobs:

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies and build
run: |
npm install
npx webpack
- name: Deploy to GitHub Pages
id: deployment
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages
folder: dist
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 226e0f1

Please sign in to comment.