Skip to content

Update target_config.toml spez, adler, all trains, din, afd #122

Update target_config.toml spez, adler, all trains, din, afd

Update target_config.toml spez, adler, all trains, din, afd #122

Workflow file for this run

name: generate pixel
on:
workflow_dispatch:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
generate:
runs-on: ubuntu-latest
outputs:
head: ${{ steps.head.outputs.head }}
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- run: pip install -r requirements.txt
- run: ./bin/generate.sh
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: echo $(git rev-parse HEAD)
- id: head
run: echo "head=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
# Single deploy job since we're just deploying
deploy:
needs: generate
if: github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- run: echo ${{needs.generate.outputs.head}}
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{needs.generate.outputs.head}}
- run: git rev-parse HEAD
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './outputs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2