Build Android and Windows packages and promote Gitea releases
This commit is contained in:
1 parent
27e77fff39
commit
0f6097f58f
6 files changed
+257
-29
No files matched your search
@@ -0,0 +1,32 @@
|
||||
name: Gitea Release
|
||||
on:
|
||||
push:
|
||||
tags: ['v*']
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: Existing release tag matching pubspec version
|
||||
required: true
|
||||
permissions:
|
||||
contents: write
|
||||
concurrency:
|
||||
group: cutdex-release
|
||||
cancel-in-progress: false
|
||||
jobs:
|
||||
release:
|
||||
runs-on: cutdex-windows-x64
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
ref: ${{ gitea.event.inputs.tag || gitea.ref_name }}
|
||||
persist-credentials: false
|
||||
- name: Publish validated Android and Windows packages
|
||||
shell: pwsh
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
RELEASE_TAG: ${{ gitea.event.inputs.tag || gitea.ref_name }}
|
||||
run: |
|
||||
$env:GITEA_SHA = git rev-parse HEAD
|
||||
python tool/gitea/promote-release.py
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Release promotion failed.' }
|
||||
Reference in new issue
Block a user