Pin CI actions, exclude unattended dependency runs, and isolate deployment [skip ci]
This commit is contained in:
parent
58f7e9d803
commit
d2fcc04bb9
1 changed files with 30 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ jobs:
|
|||
EMSDK_VERSION: '6.0.6'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||
|
||||
- name: Install cmake & friends
|
||||
run: |
|
||||
|
|
@ -63,9 +63,37 @@ jobs:
|
|||
test -s "build-web/web/$file" || { echo "hiányzik: $file"; exit 1; }
|
||||
done
|
||||
|
||||
- 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: build-web/web
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
if: ${{ github.actor != 'renovate-bot' && !startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.head_ref, 'renovate/') }}
|
||||
deploy-pages:
|
||||
name: Deploy static site artifacts
|
||||
needs: deploy
|
||||
if: ${{ github.actor != '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:63538dfe497cc29dfafdda25ada09b46db68a3f4cc205abf1f5d6bf0913f3384
|
||||
volumes:
|
||||
- /pages/platform-game:/pages/platform-game
|
||||
concurrency:
|
||||
group: pages-deploy-platform-game
|
||||
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: build-web/web
|
||||
- name: Deploy to nginx pages mount
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
uses: http://forgejo:3000/andras/ci-actions/deploy-pages@main
|
||||
uses: https://git.schmelczer.dev/andras/ci-actions/deploy-pages@a415e2a50992af99b7b6dd3f02cca372d87b11f6
|
||||
with:
|
||||
source: build-web/web
|
||||
target: platform-game
|
||||
|
|
|
|||
Loading…
Reference in a new issue