Skip to content

Commit

Permalink
Publish release on tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 12, 2024
1 parent aa2bc47 commit 499d69b
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build UIBase
on:
push:
branches: master
tags:
- "*"
pull_request:
types: [opened, synchronize, reopened]

Expand Down Expand Up @@ -63,9 +65,30 @@ jobs:
cmake --build build --config RelWithDebInfo
working-directory: tests/cmake


- name: Upload UI Base artifact
uses: actions/upload-artifact@master
with:
name: uibase
path: ./install

publish:
if: github.ref_type == 'tag'
needs: build
runs-on: windows-2022
permissions:
contents: write
steps:
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: uibase
path: ./install

- name: Create UI Base archive
run: 7z a uibase.7z ./install/*

- name: Publish Release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: gh release create --draft=false --notes="${{ github.ref_name }}" "${{ github.ref_name }}" ./uibase.7z

0 comments on commit 499d69b

Please sign in to comment.