This commit is contained in:
parent
faf89f7d3c
commit
9b9d7749a6
24
.github/workflows/build.yml
vendored
Normal file
24
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Builds
|
||||||
|
run-name: ${{ github.actor }} runs Gitea Actions
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ExectOS WebSite:
|
||||||
|
runs-on: oscw
|
||||||
|
container:
|
||||||
|
image: codingworkshop/oscw-runner:latest
|
||||||
|
steps:
|
||||||
|
- name: Clone repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Build WebSite
|
||||||
|
run: hugo --minify
|
||||||
|
- name: Publish WebSite
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
|
env:
|
||||||
|
OSCW_ARTIFACTS_HOSTNAME: ${{ secrets.OSCW_ARTIFACTS_HOSTNAME }}
|
||||||
|
OSCW_ARTIFACTS_USERNAME: ${{ secrets.OSCW_ARTIFACTS_USERNAME }}
|
||||||
|
OSCW_ARTIFACTS_USERKEY: ${{ secrets.OSCW_ARTIFACTS_USERKEY }}
|
||||||
|
run: |
|
||||||
|
echo "Publishing step skipped"
|
Loading…
Reference in New Issue
Block a user