Skip to content

Commit

Permalink
chore: forgejo workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alterNERDtive committed Feb 18, 2024
1 parent efad1a3 commit f7e253b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 21 deletions.
41 changes: 41 additions & 0 deletions .forgejo/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -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 }}'
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
retry-attempts: 2
retry-delay: 10000
fail-mode: fail
fail-mode: fail
20 changes: 0 additions & 20 deletions .github/workflows/auto-pull-request.yaml

This file was deleted.

0 comments on commit f7e253b

Please sign in to comment.