Merge pull request #3 from Shubidumdu/dependabot/npm_and_yarn/babel/t… #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build | |
steps: | |
- uses: actions/checkout@v3.4.0 | |
- uses: actions/configure-pages@v3.0.5 | |
- uses: actions/setup-node@v3.6.0 | |
with: | |
node-version: 18 | |
- run: | | |
npm install | |
npm run build | |
- name: Upload pages artifact | |
uses: actions/upload-pages-artifact@v1.0.7 | |
with: | |
path: 'dist/' | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 | |