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

38 lines
913 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'
2022-07-02 06:18:52 +02:00
- name: Setup semantic-release
run: npm install semantic-release@19.0.5 @saithodev/semantic-release-backmerge @semantic-release/git @semantic-release/changelog gradle-semantic-release-plugin@1.7.4 -D
2022-07-02 06:18:52 +02:00
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
run: npx semantic-release