mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-01-31 09:12:56 -05:00
- Simplify workflows build commands - Don't build ReadyToRun on validate - Move get-version into it's own job in build.yml - Split macOS into it's own reusable workflow - Add app bundle code signing - Add notarization
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
# release.yml
|
|
# Builds and creates the release on any tags starting with a `v`
|
|
---
|
|
name: release
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
jobs:
|
|
prerelease:
|
|
runs-on: ubuntu-slim
|
|
outputs:
|
|
version: ${{ steps.get_version.outputs.version }}
|
|
steps:
|
|
- name: Get tag version
|
|
id: get_version
|
|
run: |
|
|
export TAG="${{ github.ref_name }}"
|
|
echo "version=${TAG#v}" >> "${GITHUB_OUTPUT}"
|
|
|
|
docker:
|
|
needs: [prerelease]
|
|
uses: ./.github/workflows/docker.yml
|
|
with:
|
|
version: ${{ needs.prerelease.outputs.version }}
|
|
release: true
|
|
secrets:
|
|
docker_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
docker_token: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
build:
|
|
needs: [prerelease]
|
|
uses: ./.github/workflows/build.yml
|
|
secrets: inherit
|
|
with:
|
|
libation-version: ${{ needs.prerelease.outputs.version }}
|
|
publish-r2r: true
|
|
|
|
release:
|
|
needs: [prerelease, build]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v6
|
|
with:
|
|
path: artifacts
|
|
pattern: "*(Classic-)Libation.*"
|
|
|
|
- name: Release
|
|
id: release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
name: Libation ${{ needs.prerelease.outputs.version }}
|
|
body: <Put a body here>
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
draft: true
|
|
prerelease: false
|
|
files: |
|
|
artifacts/*/*
|