forgejo: build but do not deploy on branch
All checks were successful
/ build (push) Successful in 48s
All checks were successful
/ build (push) Successful in 48s
This commit is contained in:
parent
a6fe22b283
commit
564ad9fd41
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,5 @@
|
||||||
on:
|
on:
|
||||||
push:
|
push
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -18,6 +16,7 @@ jobs:
|
||||||
- name: Build site
|
- name: Build site
|
||||||
run: jekyll build --future --config _config.yml
|
run: jekyll build --future --config _config.yml
|
||||||
- name: Deploy site
|
- name: Deploy site
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.SERVER_SSH_KEY }}" >> /tmp/id_ecdsa
|
echo "${{ secrets.SERVER_SSH_KEY }}" >> /tmp/id_ecdsa
|
||||||
chmod 600 /tmp/id_ecdsa
|
chmod 600 /tmp/id_ecdsa
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue