Merge pull request #331 from MediaPortal/MP1.35_Pre.Release #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mediaportal / Release | |
on: | |
push: | |
# On Tag / Release by Mask | |
tags: | |
- "Release_*" | |
jobs: | |
build: | |
name: Mediaportal Build | |
uses: ./.github/workflows/mediaportal.yml | |
release: | |
name: Release Mediaportal | |
needs: build | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download x86 Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: Mediaportal setup file x86 | |
path: release-files | |
- name: Download x64 Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: Mediaportal setup file x64 | |
path: release-files | |
- name: 7z Artifacts | |
run: | | |
for i in *.exe;do 7z a -tZip ${i%.exe}.zip $i;done | |
working-directory: release-files | |
- name: Check artifacts | |
run: | | |
ls -l | |
working-directory: release-files | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
release-files/MediaPortalSetup_*.zip | |
codeql: | |
uses: ./.github/workflows/workflow_codeql.yml | |
needs: [build, release] | |
permissions: | |
security-events: write | |
ci-status: | |
name: Status | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
- release | |
- codeql | |
if: always() | |
steps: | |
- name: Success | |
if: ${{ !(contains(needs.*.result, 'failure')) }} | |
run: exit 0 | |
- name: Failure | |
if: ${{ contains(needs.*.result, 'failure') }} | |
run: exit 1 |