Files
webnews/.gitea/workflows/publish.yml
Sudo-Ivan ec37403369
All checks were successful
OSV-Scanner Scheduled Scan / scan-scheduled (push) Successful in 16s
CI / build-frontend (push) Successful in 41s
CI / build-backend (push) Successful in 24s
Add Android build process and CI configuration
- Updated Makefile to remove explicit JAVA_HOME export, simplifying the android-build command.
- Added Java setup step in the Gitea workflow to ensure the correct Java version is used during builds.
- Modified publish_build.sh to include the Android APK build step and copy the generated APK to the distribution directory.
2025-12-27 12:11:20 -06:00

49 lines
1.2 KiB
YAML

name: Publish
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: npm
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version: '1.25.4'
- name: Setup Java
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
with:
distribution: 'temurin'
java-version: '21'
- name: Install dependencies
run: bash scripts/publish_setup.sh
- name: Build and package
run: bash scripts/publish_build.sh
- name: Create release and upload packages
if: startsWith(gitea.ref, 'refs/tags/v')
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
REF_NAME: ${{ gitea.ref_name }}
REPO_OWNER: ${{ gitea.repository_owner }}
REPO_NAME: ${{ gitea.event.repository.name }}
SERVER_URL: ${{ gitea.server_url }}
run: bash scripts/publish.sh