From 108c6a4bd06a03d977a447a1a773d52e896580e2 Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Tue, 12 Dec 2023 21:49:24 +0300 Subject: [PATCH] Add Gitea Action --- .gitea/workflows/deploy.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..a79fc0c --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,24 @@ +name: Deploy resume page + +on: + push: + branches: ["master"] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + container: + volumes: + - homepage:/homepage + env: + HUGO_VERSION: 0.114.0 + steps: + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ + && dpkg -i ${{ runner.temp }}/hugo.deb + - name: Checkout + uses: actions/checkout@v3 + - name: Build with Hugo + run: hugo -s /workspace/chebser/resume --minify -d /homepage \ No newline at end of file