Compare commits

...

4 commits

Author SHA1 Message Date
96e75eb3b2
testing: also upload on add_ci
All checks were successful
/ build (push) Successful in 9s
2025-02-12 18:45:57 +01:00
6e5adeae7d
to be squashed: add node
All checks were successful
/ build (push) Successful in 8s
2025-02-12 18:45:05 +01:00
aaadc9937b
testing: also run on add_ci branch for testing workflow
Some checks failed
/ build (push) Failing after 5s
2025-02-12 18:43:02 +01:00
2f86bc049d
introduce CI for deploying the styleguide based on ccchh-website CI 2025-02-12 18:40:54 +01:00

View file

@ -0,0 +1,36 @@
on:
push:
branches:
- main
- add_ci
jobs:
build:
runs-on: docker
container:
image: docker.io/library/alpine
steps:
- name: Pipeline info
run: |
echo "Run triggered by ${{ github.event_name }} (${{ github.event.action }}) on ref ${{ github.ref_name }}"
- name: Install packages
run: |
apk update
# For CI actions.
apk add nodejs-current git
# For uploading.
apk add rsync openssh
- uses: actions/checkout@v4
- name: Prepare keys
run: |
echo "${{ secrets.SSH_DEPLOY_KEY }}" > deploykey.priv
chmod 400 deploykey.priv
echo "${{ secrets.SSH_KNOWN_HOSTS_FILE }}" > ./known_hosts
- name: Upload styleguide
if: (github.event_name == 'push' || github.event_name == 'schedule') && (github.ref_name == 'main' || github.ref_name == 'add_ci')
run: |
rsync -v -r --delete -e "ssh -i deploykey.priv -o 'UserKnownHostsFile ./known_hosts'" styleguide/ eh22-styleguide-deploy@eh22-wiki-intern.hamburg.ccc.de:/var/www/eh22-styleguide/