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-${{ env.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-${{ env.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 -s server mv *.zip Linuxcraft-$GITHUB_REF_NAME-server.zip - name: Upload binary artifact uses: actions/upload-artifact@v3 with: name: Linuxcraft-${{ env.GITHUB_REF_NAME }}-server.zip path: ./*.zip publish-artifacts: runs-on: docker steps: - name: Checkout the repo uses: actions/checkout@v4 - name: Get Release Notes id: releasenotes run: | echo "releasenotes='$(sed -n '/v1.5.0/,/^### /{s/v1.5.0/Changelog/;/# v/d;s/###/#/;p}' README.md)'" >> $GITHUB_OUTPUT - 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 release-notes: ${{ steps.releasenotes.outputs.releasenotes }} tag: "${{ github.ref_name }}" sha: "${{ github.sha }}" override: true