Skip to content

Commit

Permalink
new deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleinen committed Jun 10, 2024
1 parent 0c0792f commit 494d806
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy-production-new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tryout 10.6.2024

on:
release:
types: [published]

jobs:
deploy:
if: github.repository == 'htw-imi-showtime/showtime-website'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Hugo setup
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.115.1'
extended: true

- name: Build
run: |
hugo \
--environment production \
--minify
- name: Deploy
uses: appleboy/scp-action@v0.1.1
with:
host: ${{ secrets.SCP_HOST_2 }}
username: ${{ secrets.SCP_USERNAME }}
key: ${{ secrets.SCP_KEY }}
passphrase: ${{ secrets.SCP_PASSPHRASE }}
source: public/
target: /var/www/html/
rm: true

0 comments on commit 494d806

Please sign in to comment.