Skip to content

Commit

Permalink
[#1] Fix invalid triggered action and deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Sep 3, 2023
1 parent 6e2e679 commit a8756ee
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build 11ty site

on:
push:
branches: ["gh-pages"]
branches: ["main"]

permissions:
contents: read
Expand All @@ -24,14 +24,8 @@ jobs:
run: |
npm install
npx @11ty/eleventy
- uses: actions/upload-pages-artifact@v2

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- id: deployment
uses: actions/deploy-pages@v2
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./_site

0 comments on commit a8756ee

Please sign in to comment.