diff --git a/.github/workflows/gitea-debian.yml b/.github/workflows/gitea-debian.yml index 46a9e9a..a5e50d2 100644 --- a/.github/workflows/gitea-debian.yml +++ b/.github/workflows/gitea-debian.yml @@ -52,4 +52,34 @@ jobs: --maintainer "idk " \ --description "A modded gitea for hidden services" \ --source ./build \ - --verbose \ No newline at end of file + --verbose + + - name: Upload Build Artifact + uses: actions/upload-artifact@v4 + with: + path: "*.deb" + name: gitea-debian-${{ steps.get_version.outputs.version }}.deb + + release: + needs: build + runs-on: ubuntu-latest + steps: + - name: Download All Artifacts + uses: actions/download-artifact@v4 + + - name: Get Current Date + id: date + run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + + - name: Update Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ needs.check-release.outputs.new_tag }} + name: "Gitea ${{ needs.check-release.outputs.new_tag }}" + body: "Automated build of Gitea ${{ needs.check-release.outputs.new_tag }}" + files: "*.deb" + draft: false + prerelease: false + allowUpdates: true + removeArtifacts: false + replacesArtifacts: true diff --git a/.github/workflows/gitea-nightly-debian.yml b/.github/workflows/gitea-nightly-debian.yml index 14e2a95..82a8e83 100644 --- a/.github/workflows/gitea-nightly-debian.yml +++ b/.github/workflows/gitea-nightly-debian.yml @@ -52,4 +52,32 @@ jobs: --maintainer "idk " \ --description "A modded gitea for hidden services" \ --source ./build \ - --verbose \ No newline at end of file + --verbose + + - name: Upload Build Artifact + uses: actions/upload-artifact@v4 + with: + path: "*.deb" + name: gitea-nightly-debian-0.0.1-${{ steps.get_version.outputs.version }}.deb + + release: + needs: build + runs-on: ubuntu-latest + steps: + - name: Download All Artifacts + uses: actions/download-artifact@v4 + + - name: Get Current Date + id: date + run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + + - name: Create or Update Nightly Release + uses: ncipollo/release-action@v1 + with: + tag: nightly + artifacts: "*.deb" + draft: false + prerelease: true + allowUpdates: true + removeArtifacts: false + replacesArtifacts: true