avoid/.forgejo/workflows/deploy.yml
renovate-bot 956f239411
All checks were successful
Check & deploy / deploy (pull_request) Successful in 3s
Check & deploy / Deploy static site artifacts (pull_request) Has been skipped
Update all non-major dependencies
2026-11-07 13:20:59 +00:00

65 lines
2.7 KiB
YAML

name: Check & deploy
'on':
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
deploy:
runs-on: ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref,
'renovate/')) && 'renovate' || 'docker' }}
steps:
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- name: Stage static files
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
mkdir -p _site
cp -R index.html css js _site/
- name: Upload static site artifact 1
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
uses: https://github.com/actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5
with:
name: pages-deploy-0
path: _site
if-no-files-found: error
retention-days: 1
if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
github.event.pull_request.user.login)) }}
deploy-pages:
name: Deploy static site artifacts
needs: deploy
if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
github.event.pull_request.user.login)) && (!(github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref,
'refs/heads/renovate/') || startsWith(github.head_ref, 'renovate/'))) && ((github.event_name == 'push' && github.ref == 'refs/heads/main')) }}
runs-on: pages
container:
image: node:22-bookworm@sha256:7702d8aa4d5910871692af4480eb3ba86f23047a6417a44d857d06c95d060d3f
volumes:
- /pages/avoid:/pages/avoid
concurrency:
group: pages-deploy-avoid
cancel-in-progress: false
steps:
- name: Download static site artifact 1
uses: https://github.com/actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
with:
name: pages-deploy-0
path: _site
- name: Deploy to nginx pages mount
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: https://git.schmelczer.dev/andras/ci-actions/deploy-pages@c80f2f0701d7618f1f0b2bb52ebd332ea34b6e28
with:
source: _site
target: avoid