test
This commit is contained in:
parent
48afbb5f78
commit
e9b3d3038b
@ -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
|
||||
|
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