Merge pull request 'Adopt shared ci-actions for publishing' (#1) from ci/shared-actions into main
All checks were successful
Check & deploy / deploy (push) Successful in 6s
All checks were successful
Check & deploy / deploy (push) Successful in 6s
Reviewed-on: https://home.schmelczer.dev/git/git/andras/avoid/pulls/1
This commit is contained in:
commit
265bde56b4
1 changed files with 10 additions and 5 deletions
|
|
@ -19,10 +19,15 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Copy files to nginx pages mount
|
||||
- name: Stage static files
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
apt update && apt install -y rsync
|
||||
deploy_dir="$(mktemp -d)"
|
||||
cp -R index.html css js "$deploy_dir"/
|
||||
rsync -a --delete --mkpath --chmod=ugo=rwx "$deploy_dir"/ /pages/avoid/
|
||||
mkdir -p _site
|
||||
cp -R index.html css js _site/
|
||||
|
||||
- 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
|
||||
with:
|
||||
source: _site
|
||||
target: avoid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue