Skip to content

fix: force config file for release please #33

fix: force config file for release please

fix: force config file for release please #33

---
name: Release Please
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
env:
APP_NAME: WindowTool
VER_FILE: ./source/version.h
jobs:
release:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release Please
uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
build-x64:
name: Build x64 Release
needs: release
if: ${{ needs.release.outputs.releases_created }}
uses: ./.github/workflows/build.yml
secrets: inherit
with:
platform: x64
configuration: Release
build-x86:
name: Build x86 Release
needs: release
if: ${{ needs.release.outputs.releases_created }}
uses: ./.github/workflows/build.yml
secrets: inherit
with:
platform: x86
configuration: Release
publish:
name: Publish Release
runs-on: ubuntu-latest
needs: [release,build-x64,build-x86]
if: ${{ needs.release.outputs.releases_created }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
pattern: "*-artifact"
merge-multiple: false
- name: Zip Artifacts
run: |
mv x86-artifact x86
mv x64-artifact x64
zip -r "${{ env.APP_NAME }}-${{ needs.release.outputs.tag_name }}.zip" x86 x64 LICENSE
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.release.outputs.tag_name }} "${{ env.APP_NAME }}-${{ needs.release.outputs.tag_name }}.zip"