Skip to content

Commit

Permalink
Add GitHub Action that builds the website
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-lerch committed Feb 5, 2024
1 parent 5ca247e commit 14e8ced
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Auto deploy

on:
push:

jobs:
website:
name: Website build and deploy
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Update content submodule to latest commit
run: git submodule update --remote --checkout
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Yarn packages
run: yarn install --immutable
- name: Build static website
run: yarn run generate
- name: Deploy to kueken.studieren-ohne-grenzen.org
uses: Dylan700/[email protected]
with:
server: ${{ vars.SFTP_HOST }}
username: ${{ vars.SFTP_USERNAME }}
password: ${{ secrets.SFTP_PASSWORD }}
uploads: |
./dist/ => /html/
delete: true
2 changes: 1 addition & 1 deletion content

0 comments on commit 14e8ced

Please sign in to comment.