mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-23 02:55:39 +01:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Release
|
|
|
|
on: [push, workflow_dispatch]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Cache Gradle packages
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.gradle/caches
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
restore-keys: ${{ runner.os }}-gradle
|
|
- name: Cache Node packages
|
|
uses: actions/cache@v4
|
|
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@v4
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 8
|
|
- name: Use Node.js 18.x
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 18.x
|
|
- name: Prepare repository
|
|
run: |
|
|
git fetch --unshallow --tags
|
|
yarn install --immutable
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|
|
- name: Create Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CURSE_API: ${{ secrets.CURSE_API }}
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
run: |
|
|
yarn auto shipit
|
|
|