Skip to content

Commit

Permalink
Add dev deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Nov 19, 2023
1 parent 3eca82d commit 33ebe8a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy website to dev server

on:
push:
branches-ignore:
- main
pull_request:
branches-ignore:
- main

jobs:
deploy:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

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

- name: Build
run: echo ${{ github.ref.name }}
# run: hugo --minify -b https://dev.ff.berlin --destination dev/${{ github.ref.name }}

# - name: Deploy
# uses: appleboy/scp-action@master
# with:
# host: ${{ secrets.PRODUCTION_SERVER }}
# username: ${{ secrets.PRODUCTION_USERNAME }}
# key: ${{ secrets.PRODUCTION_SSH_KEY }}
# source: "public/"
# target: ${{ secrets.PRODUCTION_WEBROOT }}
# strip_components: 1
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Deploy Website
name: Deploy website to production server

on:
push:
branches:
- hugo # Set a branch to deploy
pull_request:
- main

jobs:
deploy:
Expand Down

0 comments on commit 33ebe8a

Please sign in to comment.