test
Some checks failed
/ deploy (push) Successful in 29s
release / release (push) Failing after 25s

This commit is contained in:
Mans Ziesel 2023-09-30 20:35:50 +02:00
parent 48afbb5f78
commit e9b3d3038b
2 changed files with 44 additions and 9 deletions

View File

@ -22,16 +22,16 @@ jobs:
- name: Build site - name: Build site
run: hugo --minify run: hugo --minify
- name: Create tarfile # - name: Create tarfile
run: tar -cf website.tar public # run: tar -cf website.tar public
- name: Create release # - name: Create release
id: create-release # id: create-release
uses: actions/release-action@main # uses: actions/release-action@main
with: # with:
files: |- # files: |-
website.tar # website.tar
api_key: '${{secrets.RELEASE_TOKEN}}' # api_key: '${{secrets.RELEASE_TOKEN}}'
# - name: Upload artifacts # - name: Upload artifacts
# uses: actions/upload-artifact@v3 # uses: actions/upload-artifact@v3

View File

@ -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}}'