From 9b9d7749a6ece3ae929c3404c80ceb1362b826dd Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Tue, 18 Jun 2024 17:15:40 +0200 Subject: [PATCH] Import pipeline --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..639311e --- /dev/null +++ b/.github/workflows/build.yml @@ -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"