diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index 1b5f40b..7eff34e 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -2,13 +2,11 @@ name: Build All on: push: - branches: [main, master] - pull_request: - branches: [main, master] - workflow_dispatch: + tags: + - 'v*' jobs: - build: + build-and-release: runs-on: ubuntu-latest steps: - name: Checkout @@ -17,8 +15,13 @@ jobs: - name: Build all variants run: bash scripts/build-all.sh - - name: Upload build artifacts - uses: actions/upload-artifact@v3 + - name: Create Release + uses: softprops/action-gh-release@v1 with: - name: omninx-packs-${{ github.sha }} - path: output/ + files: | + output/OmniNX-Light-*.zip + output/OmniNX-Standard-*.zip + output/OmniNX-OC-*.zip + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}