Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
c2c3763976 | |||
bafbda6a6f | |||
b4f6b8cc98 | |||
22a456e8b0 | |||
a4dcae26c2 | |||
4b19c14aae | |||
94485bdb36 | |||
1137607c76 | |||
a5654cc14d | |||
94ea21a73f |
@ -1,5 +1,7 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
@ -17,9 +19,26 @@ jobs:
|
||||
with:
|
||||
path: resources
|
||||
key: ${{ runner.os }}-resources
|
||||
- name: Build test
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
- uses: actions/cache@v4
|
||||
id: restore-build
|
||||
with:
|
||||
path: public
|
||||
key: ${{ gitea.sha }}
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: gitea.event_name == 'tag'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v4
|
||||
id: restore-build
|
||||
with:
|
||||
path: public
|
||||
key: ${{ gitea.sha }}
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: ${{ vars.CONTAINER_REGISTRY_URL }}/${{ gitea.repository }}
|
||||
- uses: docker/login-action@v3
|
||||
|
Reference in New Issue
Block a user