Skip to content

Commit

Permalink
deploy to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
piranha committed May 11, 2023
1 parent 2ee91bc commit 2d81fe3
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-and-deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -38,3 +38,24 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Minify
run: make min

- uses: actions/upload-pages-artifact@v1
with:
path: _build

deploy:
needs: build
if: github.ref == 'refs/heads/master'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 2d81fe3

Please sign in to comment.