Skip to content

Commit

Permalink
rework yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Nov 12, 2023
1 parent 40f24b6 commit fb6da21
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 141 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build Application
on:
push:
branches: [ "main" ]
tags:
- v*
pull_request:
branches: [ "main" ]

Expand Down Expand Up @@ -93,3 +95,41 @@ jobs:
with:
name: build_artifact_macos
path: Face_Landmarker_Link_macos.zip

release:
name: Release pushed tag
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
needs: [ build_linux, build_macos, build_windows ]
permissions:
contents: write
steps:
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes
- name: Download Windows artifacts
uses: actions/download-artifact@v3
with:
name: build_artifact_windows
- name: Download Linux artifacts
uses: actions/download-artifact@v3
with:
name: build_artifact_linux
- name: Download MacOS artifacts
uses: actions/download-artifact@v3
with:
name: build_artifact_macos
- name: Display structure of downloaded files
run: ls -R
working-directory: .
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
**/Face_Landmarker_Link*.zip
141 changes: 0 additions & 141 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit fb6da21

Please sign in to comment.