name: Build Application on: push: tags: - 'v*' jobs: build-modrinth: runs-on: docker container: image: codeberg.org/astreaprtcl/linuxcraft/alpine-packwiz:latest steps: - name: Checkout the repo uses: actions/checkout@v4 - name: Build Package run: | packwiz mr export - name: Upload binary artifact uses: actions/upload-artifact@v3 with: name: Linuxcraft-$GITHUB_REF_NAME.mrpack path: ./*.mrpack build-curseforge: runs-on: docker container: image: codeberg.org/astreaprtcl/linuxcraft/alpine-packwiz:latest steps: - name: Checkout the repo uses: actions/checkout@v4 - name: Build Package run: | packwiz cf export - name: Upload binary artifact uses: actions/upload-artifact@v3 with: name: Linuxcraft-$GITHUB_REF_NAME.zip path: ./*.zip build-serverpack: runs-on: docker container: image: codeberg.org/astreaprtcl/linuxcraft/alpine-packwiz:latest steps: - name: Checkout the repo uses: actions/checkout@v4 - name: Build Package run: | packwiz cf export - name: Upload binary artifact uses: actions/upload-artifact@v3 with: name: Linuxcraft-$GITHUB_REF_NAME-server.zip path: ./*.zip publish-artifacts: runs-on: docker steps: - name: Download Binaries uses: actions/download-artifact@v3 with: merge_multiple: true path: artifacts - name: Prepare release run: | mkdir release mv artifacts/*/* release - name: Upload binaries uses: actions/forgejo-release@v2.6.0 with: direction: upload url: ${{ env.GITHUB_SERVER_URL }} repo: ${{ env.GITHUB_REPOSITORY }} token: ${{ secrets.TOKEN }} release-dir: release tag: "${{ github.ref_name }}" sha: "${{ github.sha }}" release-notes-assistant: true override: true