Skip to content

Commit

Permalink
feat: updated action
Browse files Browse the repository at this point in the history
  • Loading branch information
Slenderman00 committed Nov 8, 2024
1 parent 709d03d commit ed1cf63
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ on:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
release:
name: Release
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -27,10 +26,10 @@ jobs:
- name: Cache Gradle
uses: burrunan/gradle-cache-action@v1

- name: Build with Gradle
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew clean build
run: ./gradlew generateMeta clean

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -43,5 +42,5 @@ jobs:

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm exec semantic-release

0 comments on commit ed1cf63

Please sign in to comment.