Fix MMC recipe (lv circuit tag instead of specific one) (#2519) #1397
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Latest Build | |
on: | |
push: | |
branches: ['1.20.1', '1.21'] | |
paths-ignore: ['.github/**', '**/*.md'] | |
concurrency: | |
group: auto-build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
MAVEN_USER: ${{ secrets.MAVEN_USER }} | |
SNAPSHOT: true | |
GITHUB_TOKEN: ${{ github.token }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Build | |
uses: ./.github/actions/build_setup | |
- name: Get Version | |
id: ver | |
run: echo "version=$(./gradlew -q printVersion)" >> $GITHUB_OUTPUT | |
- name: Build | |
run: ./gradlew build --build-cache | |
- name: Publish to Maven | |
if: github.repository_owner == 'GregTechCEu' | |
run: ./gradlew publish --build-cache | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifacts | |
path: build/libs/* | |
if-no-files-found: error | |
retention-days: 90 | |
- name: Changelog | |
id: changelog | |
uses: mikepenz/release-changelog-builder-action@v5 | |
with: | |
configuration: ./.github/json/config-latest.json | |
fromTag: latest-${{ github.ref_name }} | |
toTag: ${{ github.ref }} | |
fetchViaCommits: true | |
failOnError: false | |
- name: Release Latest | |
uses: andelf/nightly-release@46e2d5f80828ecc5c2c3c819eb31186a7cf2156c | |
with: | |
tag_name: latest-${{ github.ref_name }} | |
name: '${{ github.ref_name }}-${{ steps.ver.outputs.version}} SNAPSHOT $$' | |
prerelease: true | |
body: | | |
The latest build of GTM for Minecraft ${{ github.ref_name }}. | |
Please report any [issues](https://github.com/GregTechCEu/GregTech-Modern/issues). | |
${{ steps.changelog.outputs.changelog }} | |
files: build/libs/*.jar |