Skip to content

Commit

Permalink
cd?
Browse files Browse the repository at this point in the history
  • Loading branch information
default-username-852 committed Jul 15, 2024
1 parent 6ee8680 commit 27d0499
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ name: NodeJS with Webpack
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]

environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}

steps:
- uses: actions/checkout@v4

Expand All @@ -26,3 +28,15 @@ jobs:
run: |
npm install
npx webpack --mode=production
- name: Configure GitHub Pages
uses: actions/configure-pages@v3

- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: dist

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

0 comments on commit 27d0499

Please sign in to comment.