Skip to content

Commit

Permalink
Update github actions script
Browse files Browse the repository at this point in the history
  • Loading branch information
woshibiantai committed Jul 15, 2024
1 parent 2f20eeb commit 2962b22
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/deploy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,31 @@ name: Deploy App
run-name: ${{ github.actor }} is deploying the app
on: [push]
jobs:
Deploy-App:
build:
runs-on: ubuntu-latest
steps:
- run: echo "Starting..."
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: echo "Installing dependencies..."
- run: npm install
- run: echo "Building the app..."
- run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
name: 'github-pages',
path: 'dist'
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local
Expand Down

0 comments on commit 2962b22

Please sign in to comment.