This commit is contained in:
parent
8504fd9411
commit
0cf142fc51
24
.gitea/workflows/test.yml
Normal file
24
.gitea/workflows/test.yml
Normal file
@ -0,0 +1,24 @@
|
||||
name: Test upload web docs
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Create example content
|
||||
run: |
|
||||
mkdir -p web
|
||||
echo "<h1>Works</h1><a href="other.html">Link to other page</a>" > web/index.html
|
||||
echo "<h1>Works again</h1>" > web/other.html
|
||||
|
||||
- name: Upload web docs
|
||||
uses: https://git.pvv.ntnu.no/Projects/rsync-action@${{ gitea.ref_name }}
|
||||
with:
|
||||
source: web
|
||||
target: ${{ gitea.ref_name }}
|
||||
username: gitea-web
|
||||
ssh-key: ${{ secrets.WEB_SYNC_SSH_KEY }}
|
||||
host: bekkalokk.pvv.ntnu.no
|
||||
known-hosts: "bekkalokk.pvv.ntnu.no ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEI6VSaDrMG8+flg4/AeHlAFIen8RUzWh6URQKqFegSx"
|
Loading…
Reference in New Issue
Block a user