Compare commits
No commits in common. "265bde56b403a374449fdc8ba4db2351acaffda1" and "4467b6d8bbbf0e920ae02a730ba44d0d4d9a451e" have entirely different histories.
265bde56b4
...
4467b6d8bb
1 changed files with 5 additions and 10 deletions
|
|
@ -19,15 +19,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Stage static files
|
- name: Copy files to nginx pages mount
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p _site
|
apt update && apt install -y rsync
|
||||||
cp -R index.html css js _site/
|
deploy_dir="$(mktemp -d)"
|
||||||
|
cp -R index.html css js "$deploy_dir"/
|
||||||
- name: Deploy to nginx pages mount
|
rsync -a --delete --mkpath --chmod=ugo=rwx "$deploy_dir"/ /pages/avoid/
|
||||||
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