# Builds the mod for every v* tag and publishes it as a release with lua_mod_automator.zip # attached, so .../releases/download/latest/lua_mod_automator.zip always serves the newest one. # Pre-release tags (containing "-") and tags on commits that are not on master are built and # tested but not released (see ci/release.sh). # Uses the repository secret RELEASE_TOKEN (a token with "repository: Read and Write") when it # exists, else the job's automatic token. name: release on: push: tags: - "v*" jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: # release.sh reads the v* tag on HEAD and checks that HEAD is on origin/master fetch-depth: 0 - uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4.9.1 with: distribution: temurin java-version: "25" # The build runs without the token; only the publish step gets it. - name: Build run: ci/release.sh build - name: Publish env: GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN || secrets.GITEA_TOKEN }} run: ci/release.sh publish