Skip to content

.github/workflows/release.yml #28

.github/workflows/release.yml

.github/workflows/release.yml #28

Workflow file for this run

on:
schedule:
- cron: "0 0 * * 5"
workflow_dispatch:
concurrency:
group: release
cancel-in-progress: true
permissions:
contents: write
id-token: write
pages: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: Release
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v5
with:
node-version: 20
- uses: actions/setup-ruby@v1
- run: |
gem install asciidoctor
gem install asciidoctor-pdf
- run: |
npm ci
npm run report:pdf
npm run report:html
npm run report:asciidoc
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Release mainline
uses: ncipollo/release-action@v1
with:
name: Contributions Report
tag: contrib
commit: ${{ github.sha }}
artifacts: ./report.*
allowUpdates: true
artifactErrorsFailBuild: true
omitBody: true
omitBodyDuringUpdate: true
removeArtifacts: true
- uses: rickstaa/action-create-tag@v1
with:
tag: contrib
force_push_tag: true
- run: |
mkdir _site
cp report.html _site/index.html
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
name: Publish
runs-on: ubuntu-latest
needs: release
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4