adjust table contents #6
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: Full Build | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: [ master ] | |
| tags: [ '*' ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get tag number from tag string | |
| id: tag_number | |
| if: ${{ startsWith( github.ref, 'refs/tags/' ) }} | |
| run: | | |
| orig_tag="${{ github.ref_name }}" | |
| echo "tag_number=${orig_tag/v/}" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Checkout master | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: master | |
| path: master | |
| - name: Setup MAPI | |
| uses: BadMagic100/setup-hk@v2 | |
| with: | |
| apiPath: HkRefs | |
| dependencyFilePath: master/ModDependencies.txt | |
| - name: Install dependencies master | |
| run: dotnet restore | |
| shell: bash | |
| working-directory: master | |
| - name: Build master | |
| run: dotnet build -c Release /p:AssemblyVersion=${{ steps.tag_number.outputs.tag_number }} | |
| shell: bash | |
| working-directory: master | |
| - name: Prepare master artifacts for release | |
| uses: christopherhx/gitea-upload-artifact@v4 | |
| with: | |
| name: Publish-Master | |
| path: master/bin/Publish | |
| release: | |
| if: ${{ startsWith( github.ref, 'refs/tags/' ) }} | |
| needs: | |
| - build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download Artifacts | |
| uses: christopherhx/gitea-download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - name: Get build details | |
| id: details | |
| run: | | |
| sha="$(sed '4q;d' artifacts/Publish-Master/LanguageSupport/SHA.txt)" | |
| ver="${{ github.ref_name }}" | |
| echo "archiveHash=$sha" >> $GITHUB_OUTPUT | |
| echo "buildVersion=$ver" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| draft: false | |
| generate_release_notes: true | |
| fail_on_unmatched_files: true | |
| tag_name: ${{ steps.details.outputs.buildVersion }} | |
| body: | | |
| SHA256 of LanguageSupport.zip: ${{ steps.details.outputs.archiveHash }} | |
| Attachments: | |
| - LanguageSupport.zip | |
| - to be used for the ModInstaller | |
| - LanguageSupport.dll | |
| - the mod, also inside LanguageSupport.zip | |
| files: | | |
| artifacts/Publish-Master/LanguageSupport/LanguageSupport.zip | |
| artifacts/Publish-Master/LanguageSupport/LanguageSupport.dll |