Tag Weekly Release #5
This file contains 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
# Workflow to automatically create weekly version tags and trigger beta releases | |
# This workflow runs every Sunday at 4:00 AM UTC and can also be triggered manually | |
name: Tag Weekly Release | |
on: | |
# Allow manual triggering of the workflow | |
workflow_dispatch: | |
# Schedule the workflow to run weekly | |
schedule: | |
# Runs at 04:00 UTC every Sunday | |
# Cron syntax: minute hour day-of-month month day-of-week | |
- cron: '0 4 */2 * 0' | |
jobs: | |
tag: | |
name: Tag Weekly Release | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository with full history for proper versioning | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Setup Java environment for Gradle operations | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
# Create and push a new version tag using Reckon | |
# This uses the 'final' stage for production-ready releases | |
- name: Tag Weekly Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew :reckonTagPush -Preckon.stage=final | |
# Trigger the build and publish workflow for beta release | |
# This starts the process of building and deploying the app to various platforms | |
- name: Trigger Workflow | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'build_and_publish_on_platforms.yml', | |
ref: 'dev', | |
inputs: { | |
"release_type": "beta", | |
}, | |
}) |