Skip to content

Test both rc and main branches daily #38

Test both rc and main branches daily

Test both rc and main branches daily #38

name: Build and release
on: [push, pull_request]
jobs:
build-test:
uses: cygporter/workflows/.github/workflows/build-test.yml@v2
with:
cygport_file: git.cygport
github-release:
if: github.ref == format('refs/heads/v{0}', needs.build-test.outputs.cygport-pv)
needs: build-test
permissions:
contents: write
uses: cygporter/workflows/.github/workflows/github-release.yml@v2
with:
tag_name: v${{ needs.build-test.outputs.cygport-pvr }}
cygwin-release:
if: github.ref == format('refs/heads/v{0}', needs.build-test.outputs.cygport-pv)
needs: [build-test, github-release]
uses: cygporter/workflows/.github/workflows/cygwin-release.yml@v2
with:
cygport_file: git.cygport
tag_name: v${{ needs.build-test.outputs.cygport-pvr }}
secrets:
maintainer_key: ${{ secrets.maintainer_key }}