This commit is contained in:
parent
a98be8f285
commit
2e335d78c2
1 changed files with 28 additions and 0 deletions
28
.forgejo/workflows/publish.yaml
Normal file
28
.forgejo/workflows/publish.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
name: ci
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_publish:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
- run: npm install -g bnycdn sass
|
||||||
|
- name: Setup Hugo
|
||||||
|
uses: https://guardianproject.dev/actions/actions-hugo@v3
|
||||||
|
with:
|
||||||
|
hugo-version: '0.154.3'
|
||||||
|
extended: true
|
||||||
|
- run: hugo
|
||||||
|
- run: bnycdn key set default ${{ secrets.BUNNY_API }}
|
||||||
|
- run: bnycdn key set sr2pro ${{ secrets.BUNNY_FTP_PASSWORD }} --type=storages
|
||||||
|
- run: bnycdn cp -R -s sr2pro ./public /sr2pro/
|
||||||
|
- run: bnycdn pz purge -t www.sr2pro.uk
|
||||||
Loading…
Add table
Add a link
Reference in a new issue