Update workflow #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docs | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
required: false | ||
type: string | ||
repository_dispatch: | ||
types: [update_data] | ||
push: | ||
paths: | ||
- "_includes/**" | ||
- "_layouts/**" | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
actions: read | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.main_branch || github.event.client_payload.ref || env.GITHUB_REF_NAME || "devel" }} | ||
Check failure on line 35 in .github/workflows/docs.yml GitHub Actions / Build DocsInvalid workflow file
|
||
- run: ./scripts/build-data.sh --remote | ||
- run: | | ||
./scripts/group.sh > ./_pages/actvity.md | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2 | ||
bundler-cache: true | ||
- name: Build with Jekyll | ||
run: bundle exec jekyll build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |