Skip to content

Commit

Permalink
chore: update gha
Browse files Browse the repository at this point in the history
  • Loading branch information
all4code committed Aug 30, 2024
1 parent 2b605c3 commit 635c466
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ on:

jobs:
mkdocs:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -31,8 +36,11 @@ jobs:
echo "MKDOCS_VERSION=$(mkdocs --version | cut -d " " -f 3)" >> $GITHUB_ENV
echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-9`" >> $GITHUB_ENV
- run: rm ./.gitignore

- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
Expand Down

0 comments on commit 635c466

Please sign in to comment.