ci #41
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: ci | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
paths: [ "input/**" ] | |
pull_request: | |
branches: [ "main" ] | |
paths: [ "input/**" ] | |
env: | |
GH_TOKEN: ${{ github.token }} | |
jobs: | |
# ---------------------------------------------------------------------- | |
convert-test-files: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v3 | |
- run: gh release download wip --pattern 'gpc' | |
- run: chmod +x gpc | |
- run: ./gpc ./input/filelist.txt ./output | |
- run: rm gpc | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: generated by gpc | |
commit_user_name: volkerdoerr | |
commit_user_email: [email protected] | |
commit_author: Volker Doerr <[email protected]> | |
commit_options: '--signoff' | |
# ---------------------------------------------------------------------- | |
update-tag: | |
runs-on: ubuntu-latest | |
needs: convert-test-files | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: rickstaa/action-create-tag@v1 | |
with: | |
tag: "wip" | |
message: "rolling: work in progress" | |
force_push_tag: true | |
# ---------------------------------------------------------------------- | |
build-website: | |
runs-on: ubuntu-latest | |
needs: update-tag | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- run: gh release download wip --pattern 'gpc' | |
- run: chmod +x gpc | |
- run: ./gpc https://gemspec.dev.ccs.gematik.solutions/docs/filelist.txt ./pages | |
- uses: actions/checkout@v3 | |
- uses: actions/configure-pages@v2 | |
- uses: actions/jekyll-build-pages@v1 | |
with: | |
source: output | |
destination: ./_site | |
- uses: actions/upload-pages-artifact@v1 | |
# ---------------------------------------------------------------------- | |
deploy-website: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build-website | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
steps: | |
- id: deployment | |
uses: actions/deploy-pages@v1 | |