Skip to content

Commit

Permalink
action based again
Browse files Browse the repository at this point in the history
  • Loading branch information
brianorwhatever committed Oct 8, 2023
1 parent 895888a commit 1b4f2f8
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,34 @@ jobs:

- run: mkdir deploy && mv index.html deploy

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: deploy
# - name: Deploy 🚀
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# folder: deploy

# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./deploy

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
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action

0 comments on commit 1b4f2f8

Please sign in to comment.