stadt-land-fluss/.github/workflows/publish.yml

69 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2024-08-19 20:26:01 +00:00
---
name: CI Workflow
on: push
jobs:
2024-08-19 21:33:24 +00:00
test:
defaults:
run:
shell: bash
container:
image: luzifer/gh-arch-env
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Marking workdir safe
run: git config --global --add safe.directory /__w/stadt-land-fluss/stadt-land-fluss
- name: Lint code
run: make frontend_lint trivy
2024-08-19 20:26:01 +00:00
gh-page-publish:
2024-08-19 21:33:24 +00:00
if: ${{ github.ref == 'refs/heads/master' }}
needs: [test]
2024-08-19 20:26:01 +00:00
defaults:
run:
shell: bash
container:
image: luzifer/gh-arch-env
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Marking workdir safe
run: git config --global --add safe.directory /__w/stadt-land-fluss/stadt-land-fluss
- name: Generate static page
run: make frontend_prod
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: dist
- name: Deploy artifact
uses: actions/deploy-pages@v1
...