-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Action that builds the website
- Loading branch information
1 parent
5ca247e
commit 14e8ced
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Submodule content
updated
4 files
+1 −1 | de/footer.yml | |
+1 −1 | de/get_involved/index.md | |
+67 −0 | de/imprint/index.md | |
+4 −11 | de/our_work/mapWorld.yml |