Add CI pipeline: automated builds and releases for versioned tags.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8fdd1b9b03
commit
e1094d96a2
4 files changed
+264
-2
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# 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 "-") 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
|
||||
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
|
||||
Reference in new issue
Block a user