From d373680665b66f72dfc9946f4f4b1a7ee0000e0d Mon Sep 17 00:00:00 2001 From: Sangelo Date: Sun, 9 Jun 2024 20:16:12 +0200 Subject: [PATCH] [c] update both workflows --- .forgejo/workflows/build.yml | 13 ++++++------- .forgejo/workflows/publish.yml | 14 ++++++-------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 397ff52..116faff 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -1,10 +1,9 @@ -# Automatically build the project and run any configured tests for every push -# and submitted pull request. This can help catch issues that only occur on -# certain platforms or Java versions, and provides a first line of defence -# against bad commits. - -name: build -on: [pull_request, push] +name: Build ExploreCraft Tweaks +#on: [pull_request, push] +on: + push: + tags: + - '*' jobs: build: diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index e610994..86660ef 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -42,12 +42,10 @@ jobs: done shell: bash - - name: Upload artifacts to release - uses: actions/upload-release-asset@v1 + - name: Publish release + uses: https://gitea.com/actions/release-action@main with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: release_artifacts/* - asset_name: artifact.tar.gz - asset_content_type: application/gzip - env: - PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} + files: |- + release_artifacts/** + api_key: '${{secrets.PUBLISH_TOKEN}}' +