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 7c3446f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .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,12 +36,13 @@ jobs:
echo "MKDOCS_VERSION=$(mkdocs --version | cut -d " " -f 3)" >> $GITHUB_ENV
echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-9`" >> $GITHUB_ENV
- run: find .

- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
destination_dir: ./
keep_files: false
allow_empty_commit: true
full_commit_message: Deployed ${{ env.SHORT_SHA }} with MkDocs ${{ env.MKDOCS_VERSION }}

0 comments on commit 7c3446f

Please sign in to comment.