test
This commit is contained in:
parent
48afbb5f78
commit
e9b3d3038b
@ -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
|
||||||
|
35
.gitea/workflows/release.yml
Normal file
35
.gitea/workflows/release.yml
Normal 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}}'
|
Loading…
Reference in New Issue
Block a user