Release #6
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: Release | |
on: | |
workflow_run: | |
workflows: [Build & test] | |
branches: [v**.**] | |
types: [completed] | |
jobs: | |
create_release: | |
permissions: | |
actions: read | |
contents: write | |
env: | |
GH_TOKEN: ${{ github.token }} | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch != null }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.workflow_run.head_branch }} | |
- name: Download Windows core | |
uses: actions/download-artifact@v4 | |
with: | |
name: SEDManager-msvc20r | |
path: ${{github.workspace}}/SEDManager_Windows_x86_64 | |
github-token: ${{github.token}} | |
run-id: ${{ github.event.workflow_run.id }} | |
- name: Download Windows flutter | |
uses: actions/download-artifact@v4 | |
with: | |
name: SEDManagerGUI-windows | |
path: ${{github.workspace}}/SEDManager_Windows_x86_64 | |
github-token: ${{github.token}} | |
run-id: ${{ github.event.workflow_run.id }} | |
- name: Download Linux core | |
uses: actions/download-artifact@v4 | |
with: | |
name: SEDManager-clang20r | |
path: ${{github.workspace}}/SEDManager_Linux_x86_64 | |
github-token: ${{github.token}} | |
run-id: ${{ github.event.workflow_run.id }} | |
- name: Download Linux flutter | |
uses: actions/download-artifact@v4 | |
with: | |
name: SEDManagerGUI-linux | |
path: ${{github.workspace}}/SEDManager_Linux_x86_64 | |
github-token: ${{github.token}} | |
run-id: ${{ github.event.workflow_run.id }} | |
- name: Zip artifacts | |
shell: bash | |
working-directory: ${{github.workspace}} | |
run: | | |
zip -r SEDManager_Windows_x86_64.zip SEDManager_Windows_x86_64 | |
zip -r SEDManager_Linux_x86_64.zip SEDManager_Linux_x86_64 | |
- name: Create release | |
shell: bash | |
run: | | |
gh release create ${{ github.event.workflow_run.head_branch }} | |
gh release upload ${{ github.event.workflow_run.head_branch }} ${{github.workspace}}/SEDManager_Windows_x86_64.zip#SEDManager_Windows_x86_64 | |
gh release upload ${{ github.event.workflow_run.head_branch }} ${{github.workspace}}/SEDManager_Linux_x86_64.zip#SEDManager_Linux_x86_64 | |