diff --git a/.forgejo/workflows/create-release.yaml b/.forgejo/workflows/create-release.yaml new file mode 100644 index 0000000..7d1cc0e --- /dev/null +++ b/.forgejo/workflows/create-release.yaml @@ -0,0 +1,41 @@ +name: Create release on tag push + +on: + push: + tags: + - 'release/*' + +jobs: + build: + name: Create release + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout source code + uses: actions/checkout@v4 + + - name: Setup Gradle + uses: gradle/gradle-build-action@v3 + + - name: Run build with Gradle Wrapper + run: chmod +x ./gradlew && ./gradlew build + + - name: Get release body + run: | + echo "release_body=$(cat CHANGELOG.md)" >> "$GITHUB_ENV" + + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '>=1.20.1' + + - name: Draft release + uses: https://gitea.com/actions/release-action@main + with: + body: ${{ env.release_body }} + files: |- + build/libs/the_vault-tweaks-1.18.2-*.jar + draft: true + api_key: '${{ secrets.RELEASE_TOKEN }}' diff --git a/.github/workflows/publish-to-curseforge.yaml b/.forgejo/workflows/publish-to-curseforge.yaml similarity index 98% rename from .github/workflows/publish-to-curseforge.yaml rename to .forgejo/workflows/publish-to-curseforge.yaml index 62af75d..77f43e3 100644 --- a/.github/workflows/publish-to-curseforge.yaml +++ b/.forgejo/workflows/publish-to-curseforge.yaml @@ -48,4 +48,4 @@ jobs: retry-attempts: 2 retry-delay: 10000 - fail-mode: fail \ No newline at end of file + fail-mode: fail diff --git a/.github/workflows/auto-pull-request.yaml b/.github/workflows/auto-pull-request.yaml deleted file mode 100644 index df591e2..0000000 --- a/.github/workflows/auto-pull-request.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Pull Request on Branch Push - -on: - push: - branches-ignore: - - develop - - release - -jobs: - auto-pull-request: - name: Open pull request - runs-on: ubuntu-latest - steps: - - name: pull-request-action - uses: vsoch/pull-request-action@1.1.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PULL_REQUEST_BRANCH: "develop" - PULL_REQUEST_DRAFT: true - PASS_IF_EXISTS: true