revanced-integrations/.github/workflows/release.yml

40 lines
959 B
YAML
Raw Normal View History

name: Release
on:
2022-06-24 00:55:50 +02:00
workflow_dispatch:
push:
branches:
- main
2022-07-02 06:18:52 +02:00
- dev
pull_request:
branches:
- main
2022-07-02 06:18:52 +02:00
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel previou runs
uses: styfle/cancel-workflow-action@0.11.0
- name: Checkout
uses: actions/checkout@v3
2022-12-08 20:32:28 +01:00
- name: Set up JDK
uses: actions/setup-java@v3
with:
2022-12-08 20:32:28 +01:00
java-version: '17'
distribution: 'zulu'
2022-07-02 06:18:52 +02:00
- name: Setup Node.js
uses: actions/setup-node@v3
2022-07-02 06:18:52 +02:00
with:
2022-12-07 01:25:35 +01:00
node-version: "latest"
2022-12-08 21:11:21 +01:00
cache: 'npm'
- name: Build with Gradle
2022-12-08 20:32:48 +01:00
run: ./gradlew build --no-daemon
2022-07-02 06:18:52 +02:00
- name: Setup semantic-release
run: npm install semantic-release @saithodev/semantic-release-backmerge @semantic-release/git @semantic-release/changelog gradle-semantic-release-plugin -D
2022-07-02 06:18:52 +02:00
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release