Skip to content

feat(accounts): The rise of the burnout #23

feat(accounts): The rise of the burnout

feat(accounts): The rise of the burnout #23

Workflow file for this run

name: Build
on:
push:
branches: [ "**" ]
tags-ignore: [ "**" ]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
build:
# Only run on PRs if the source branch is on someone else's repo
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: "temurin"
cache: "gradle"
- name: Build Artifact
run: ./gradlew build
- name: Set up Artifacts Upload
run: |
echo "MINDUSTRY_ARTIFACT_PATH=$(./gradlew :foundation-mindustry:getArtifactPath -q)" >> $GITHUB_ENV
echo "DISCORD_ARTIFACT_PATH=$(./gradlew :foundation-discord:getArtifactPath -q)" >> $GITHUB_ENV
- name: Upload Mindustry Artifact to Actions
uses: actions/upload-artifact@v3
with:
name: "${{ github.event.repository.name }}"
path: "${{ env.MINDUSTRY_ARTIFACT_PATH }}"
- name: Upload Discord Artifact to Actions
uses: actions/upload-artifact@v3
with:
name: "${{ github.event.repository.name }}"
path: "${{ env.DISCORD_ARTIFACT_PATH }}"