mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
twiddle
This commit is contained in:
@@ -13,6 +13,11 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Debug Forgejo context
|
||||
run: |
|
||||
echo "EVENT_NAME = ${{ forgejo.event_name }}"
|
||||
echo "REF = ${{ forgejo.ref }}"
|
||||
echo "REF_NAME = ${{ forgejo.ref_name }}"
|
||||
- name: apt install ztd
|
||||
run: apt update && apt install -y zstd
|
||||
- uses: pnpm/action-setup@v4
|
||||
@@ -27,11 +32,11 @@ jobs:
|
||||
- run: pnpm run lint
|
||||
- run: pnpm test
|
||||
- name: Build
|
||||
if: forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main'
|
||||
if: ${{ forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main' }}
|
||||
run: pnpm build
|
||||
- name: Warm deploy
|
||||
# automatically deploy to warm on pushes to main
|
||||
if: forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main'
|
||||
if: ${{ forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main' }}
|
||||
run: |
|
||||
eval $(ssh-agent -s)
|
||||
echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||
|
||||
Reference in New Issue
Block a user