Skip to content

Commit

Permalink
Update deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
tednaphil committed May 9, 2024
1 parent 609b6cd commit c0f9bd5
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,44 @@ jobs:
environment: Test
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v6 # use the explicit version number
with:
build: npm run build
start: npm start
deploy-run:
deploy:
runs-on: ubuntu-latest
needs: cypress-run
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
# - name: Checkout
# uses: actions/checkout@v3
- name: Deploy to GitHub Pages
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: use node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: configure github pages
uses: actions/configure-pages@v3
with:
static_site_generator: next
- run: npm install
- run: npm run build
- name: upload artifacts
uses: actions/upload-pages-artifact@v1
with:
path: "./out"
- name: deploy
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v1

0 comments on commit c0f9bd5

Please sign in to comment.