chore: update CHANGELOG for v0.2.0 with recent changes and translations #2
Workflow file for this run
This file contains hidden or 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: MoLing MineCraft Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-on-ubuntu2204: | |
| strategy: | |
| matrix: | |
| os: [ darwin, windows, linux ] | |
| arch: [ amd64, arm64 ] | |
| runs-on: ubuntu-22.04 | |
| name: Release on ${{ matrix.os }} ${{ matrix.arch }} | |
| steps: | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.1' | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| fetch-depth: 0 | |
| - name: MoLing MineCraft Build | |
| run: | | |
| make clean | |
| SNAPSHOT_VERSION=${{ github.ref_name }} TARGET_OS=${{ matrix.os }} TARGET_ARCH=${{ matrix.arch }} make env | |
| SNAPSHOT_VERSION=${{ github.ref_name }} TARGET_OS=${{ matrix.os }} TARGET_ARCH=${{ matrix.arch }} make build | |
| pwd | |
| ls -al ./bin | |
| - name: Create Archive | |
| run: | | |
| mkdir -p ./dist | |
| pwd | |
| ls -al ./bin | |
| if [ "${{ matrix.os }}" = "windows" ]; then | |
| cd ./bin && zip -qr ./../dist/moling-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip ./bin/ . && cd .. | |
| else | |
| tar -czvf dist/moling-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz -C ./bin/ . | |
| fi | |
| - name: Upload Release Asset | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| generate_release_notes: true | |
| files: | | |
| ./dist/moling-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.* |