Skip to content

Commit f8695a1

Browse files
authored
Use GitHub Action for deployment
This allows using the github secret token so that it can be deployed on forked repos.
1 parent 3845c55 commit f8695a1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ jobs:
1818
repo: zola
1919
token: "${{ secrets.GITHUB_TOKEN }}"
2020
- run: /tmp/zola build
21-
- name: Deploy to GitHub Pages
22-
run: |
23-
curl -LsSf https://raw.githubusercontent.com/rust-lang/simpleinfra/master/setup-deploy-keys/src/deploy.rs | rustc - -o /tmp/deploy
24-
(cd public/ && /tmp/deploy)
25-
env:
26-
GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}
27-
if: github.ref == 'refs/heads/master'
21+
- uses: JamesIves/github-pages-deploy-action@releases/v3
22+
with:
23+
ACCESS_TOKEN: ${{ github.SECRET_TOKEN }}
24+
BRANCH: gh-pages
25+
FOLDER: public

0 commit comments

Comments
 (0)