website/.github/workflows/build.yml
Rafal Kupiec 3e1a7c1932
All checks were successful
Builds / ExectOS WebSite (push) Successful in 15s
Import ExectOS Web Site
Reviewed-on: #1
Reviewed-by: Piotr Likoski <likoski@noreply.codingworkshop.git>
Co-authored-by: Rafal Kupiec <belliash@codingworkshop.eu.org>
Co-committed-by: Rafal Kupiec <belliash@codingworkshop.eu.org>
2024-06-18 23:00:02 +02:00

24 lines
726 B
YAML

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
- 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: webpage_publish public/ 1e8c78e4764c760b3d20991c8b769cf5