Skip to content

Commit

Permalink
fix: deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Agilulfo1820 committed Dec 13, 2024
1 parent a862853 commit 8f45b7d
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches:
- main # or your default branch

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
packages: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -13,19 +20,24 @@ jobs:
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"

- name: Install Dependencies
run: yarn install

- name: Build
run: yarn build:mainnet

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v2

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/frontend/dist
force_orphan: true
path: "./apps/frontend/dist"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 8f45b7d

Please sign in to comment.