Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
uche789 authored Nov 8, 2024
1 parent a29aa46 commit 38ca585
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
environment: github-pages

permissions:
pages: write # to deploy to Pages
Expand All @@ -40,10 +44,30 @@ jobs:
run: npm install -g yarn

- name: Install and build
env:
VITE_APP_SPACE_ID: ${{ vars.VITE_APP_SPACE_ID }}
VITE_APP_ACCESS_TOKEN: ${{ vars.VITE_APP_ACCESS_TOKEN }}
run: |
yarn
yarn build
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
# Upload dist folder
path: "./build"

# This workflow contains a single job called "build"
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy 🚀
uses: actions/deploy-pages@v4
with:
Expand Down

0 comments on commit 38ca585

Please sign in to comment.