From e9b3d3038b837d2b27055083336171061ed75eb6 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sat, 30 Sep 2023 20:35:50 +0200 Subject: [PATCH] test --- .gitea/workflows/hugo.yaml | 18 +++++++++--------- .gitea/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/hugo.yaml b/.gitea/workflows/hugo.yaml index 55cdeda..22d6a8c 100644 --- a/.gitea/workflows/hugo.yaml +++ b/.gitea/workflows/hugo.yaml @@ -22,16 +22,16 @@ jobs: - name: Build site run: hugo --minify - - name: Create tarfile - run: tar -cf website.tar public + # - name: Create tarfile + # run: tar -cf website.tar public - - name: Create release - id: create-release - uses: actions/release-action@main - with: - files: |- - website.tar - api_key: '${{secrets.RELEASE_TOKEN}}' + # - name: Create release + # id: create-release + # uses: actions/release-action@main + # with: + # files: |- + # website.tar + # api_key: '${{secrets.RELEASE_TOKEN}}' # - name: Upload artifacts # uses: actions/upload-artifact@v3 diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..f63b5e5 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,35 @@ +name: release + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - name: Setup Hugo + uses: https://github.com/peaceiris/actions-hugo@v2 + with: + hugo-version: '0.111.3' + # extended: true + + - name: Build site + run: hugo --minify + + - name: Create tarfile + run: tar -cf website.tar public + + - name: Create relesase + id: create-release-action + uses: https://gitea.com/actions/release-action@main + with: + files: |- + website.tar + api_key: '${{secrets.RELEASE_TOKEN}}'