diff --git a/.gitea/workflows/compile.yml b/.gitea/workflows/compile.yml index 5263c36..bb3a30a 100644 --- a/.gitea/workflows/compile.yml +++ b/.gitea/workflows/compile.yml @@ -1,5 +1,5 @@ name: Build LaTeX on Host -on: [push] +on: [push,watch] jobs: build: @@ -19,8 +19,20 @@ jobs: - name: List files in the workspace run: ls -l - - name: Upload PDF artifact - uses: actions/upload-artifact@v3 + # - name: Upload PDF artifact + # uses: actions/upload-artifact@v4 + # with: + # name: distribution.pdf + # path: distribution.pdf + + - name: Create or Update Release + uses: nico-castell/gitea-create-release@v1 with: - name: distribution.pdf - path: distribution.pdf \ No newline at end of file + gitea_token: ${{ secrets.RELEASE_TOKEN }} + gitea_url: ${{ secrets.GITEA_URL }} + tag_name: latest + release_name: 'PDF' + prerelease: true + draft: false + force_update: true # Overwrite the 'latest' release on each run + files: distribution.pdf # Attach the compiled PDF \ No newline at end of file