From 1673a75953e4776ca353d46320fa26c222688136 Mon Sep 17 00:00:00 2001 From: the1mason Date: Wed, 7 Feb 2024 14:30:05 +0000 Subject: [PATCH] Add .github/workflows/main.yml --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1696448 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Build and Publish Artifact + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.79.1' + + - name: Build + run: hugo --minify + + - name: Archive production artifacts + uses: actions/upload-artifact@v2 + with: + name: website + path: public/ \ No newline at end of file