Skip to content

Commit

Permalink
enable deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
sauljabin committed Jul 11, 2024
1 parent 157bc5f commit 0d9ed20
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@ on:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
# - name: Setup mdBook
# uses: peaceiris/actions-mdbook@v2
# with:
# mdbook-version: "latest"
- name: Install Dependencies
run: cargo install mdbook mdbook-alerts
- name: Generating Statics Files
run: mdbook build
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v4
# if: ${{ github.ref == 'refs/heads/main' }}
# with:
# github_token: ${{ secrets.RELEASE_ACCESS_TOKEN }}
# publish_dir: ./book
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.RELEASE_ACCESS_TOKEN }}
publish_dir: ./book

0 comments on commit 0d9ed20

Please sign in to comment.