From 446675103e187bdcdfa113ddf12bbf3e5574c1b2 Mon Sep 17 00:00:00 2001 From: Rufei Zhou Date: Mon, 7 Apr 2025 00:40:48 -0700 Subject: [PATCH] add release token --- .gitea/workflows/refresh.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/refresh.yaml b/.gitea/workflows/refresh.yaml index 35d5b99..69fefe3 100755 --- a/.gitea/workflows/refresh.yaml +++ b/.gitea/workflows/refresh.yaml @@ -46,15 +46,25 @@ jobs: if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: poetry install --no-interaction --no-root #---------------------------------------------- - # install your root project, if required + # install and run the project #---------------------------------------------- - name: Install package run: poetry install --no-interaction - name: Generate New Calendar Files run: poetry run generate-ics + #---------------------------------------------- + # publish artifacts and release + #---------------------------------------------- - name: Archive production artifacts uses: christopherhx/gitea-upload-artifact@v4 with: name: calendars path: | - output/ \ No newline at end of file + output/ + - name: Use Go Action + id: use-go-action + uses: actions/release-action@main + with: + files: |- + output/** + api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file