Skip to content

Commit

Permalink
Update github workflow build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraviolet-jordan committed Jan 5, 2024
1 parent 61fd194 commit 48a3b41
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,23 @@ jobs:
- name: Build TypeScript
run: npm run compile

deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: js
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 48a3b41

Please sign in to comment.