Advanced-Portals/.github/workflows/gradle.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

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:
- uses: actions/checkout@v2
- name: Cache Gradle packages
uses: actions/cache@v2
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
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: ${{ runner.os }}-node
- name: Set up JDK 8
uses: actions/setup-java@v3
2021-06-27 18:34:33 +02:00
with:
distribution: 'zulu'
java-version: 8
- name: Use Node.js 12.x
uses: actions/setup-node@v2
with:
node-version: 12.x
- name: Prepare repository
run: |
git fetch --unshallow --tags
yarn install --frozen-lockfile
echo $(yarn bin) >> $GITHUB_PATH
- name: Build with Gradle
run: ./gradlew build
2021-06-27 18:34:33 +02:00
- name: Create Release
env:
2021-06-27 18:34:33 +02:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CURSE_API: ${{ secrets.CURSE_API }}
2021-06-27 18:34:33 +02:00
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: |
auto shipit
2021-06-27 18:34:33 +02:00