2021-06-27 18:34:33 +02:00
|
|
|
name: Release
|
2021-03-23 02:49:20 +01:00
|
|
|
|
2021-11-29 12:55:03 +01:00
|
|
|
on: [push, workflow_dispatch]
|
2021-03-23 02:49:20 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2021-05-09 04:45:31 +02:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Cache Gradle packages
|
2024-05-18 02:33:48 +02:00
|
|
|
uses: actions/cache@v4
|
2021-05-09 04:45:31 +02:00
|
|
|
with:
|
|
|
|
path: ~/.gradle/caches
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
|
|
restore-keys: ${{ runner.os }}-gradle
|
2021-06-27 18:34:33 +02:00
|
|
|
- name: Cache Node packages
|
2024-05-18 02:33:48 +02:00
|
|
|
uses: actions/cache@v4
|
2021-06-27 18:34:33 +02:00
|
|
|
with:
|
|
|
|
path: node_modules
|
|
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
|
|
|
|
restore-keys: ${{ runner.os }}-node
|
|
|
|
- name: Set up JDK 8
|
2024-05-18 02:37:09 +02:00
|
|
|
uses: actions/setup-java@v4
|
2021-06-27 18:34:33 +02:00
|
|
|
with:
|
|
|
|
distribution: 'zulu'
|
|
|
|
java-version: 8
|
2024-07-17 04:40:20 +02:00
|
|
|
- name: Use Node.js 18.x
|
2021-06-27 18:34:33 +02:00
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2024-07-17 04:40:20 +02:00
|
|
|
node-version: 18.x
|
2021-06-27 18:34:33 +02:00
|
|
|
- name: Prepare repository
|
|
|
|
run: |
|
|
|
|
git fetch --unshallow --tags
|
2024-07-17 05:09:51 +02:00
|
|
|
yarn install --immutable
|
2021-04-05 15:47:34 +02:00
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew build
|
2021-06-27 18:34:33 +02:00
|
|
|
- name: Create Release
|
2021-04-05 15:47:34 +02:00
|
|
|
env:
|
2021-06-27 18:34:33 +02:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-04-05 15:47:34 +02:00
|
|
|
CURSE_API: ${{ secrets.CURSE_API }}
|
2021-06-27 18:34:33 +02:00
|
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
|
run: |
|
2024-07-17 05:09:51 +02:00
|
|
|
yarn auto shipit
|
2021-06-27 18:34:33 +02:00
|
|
|
|