dont publish on output cache hit

This commit is contained in:
2025-04-07 02:16:51 -07:00
parent ec434a4121
commit fb48441e73
+12
View File
@@ -59,21 +59,33 @@ jobs:
- name: Generate New Calendar Files
run: poetry run generate-ics
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
- name: Check if calendars have changed
id: cached-calendars
uses: actions/cache@v4
with:
path: output
key: calendar-files-${{ hashFiles('outputs/**') }}
#----------------------------------------------
# publish artifacts and release
#----------------------------------------------
- name: Archive production artifacts
if: steps.cached-calendars.outputs.cache-hit != 'true'
uses: christopherhx/gitea-upload-artifact@v4
with:
name: calendars
path: |
output/
- name: Zip up artifacts
if: steps.cached-calendars.outputs.cache-hit != 'true'
uses: thedoctor0/zip-release@0.7.5
with:
type: 'zip'
filename: 'calendars.zip'
path: output/
- name: Create new release
if: steps.cached-calendars.outputs.cache-hit != 'true'
uses: akkuman/gitea-release-action@v1
with:
name: ${{ steps.time.outputs.time }}