diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71463778..e349dc0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,8 @@ on: push: branches: - "**" + tags: + - '[0-9]+.[0-9]+.[0-9]+' pull_request: branches: - "**" @@ -62,7 +64,6 @@ jobs: name: Windows ${{matrix.configuration}} ${{matrix.arch}} binaries path: | build/bin/${{matrix.arch}}/${{matrix.configuration}}/gsc-tool.exe - # build/bin/${{matrix.arch}}/${{matrix.configuration}}/gsc-tool.pdb build-mac: name: Build macOS @@ -170,3 +171,26 @@ jobs: name: Linux ${{matrix.configuration}} ${{matrix.arch}} binaries path: | build/bin/${{matrix.platform}}/${{matrix.configuration}}/gsc-tool + + deploy: + name: Deploy Release + runs-on: ubuntu-latest + needs: [ build-win, build-mac, build-lin ] + if: startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'refs/heads/prod' + steps: + - name: Check out files + uses: actions/checkout@v3 + + - name: Download Binaries + uses: actions/download-artifact@v3 + with: + name: Windows release x64 binaries + + - name: Create Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + draft: true + files: | + gsc-tool.exe diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index b9a24085..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,23 +0,0 @@ -version: 1.0.{build} -branches: - only: - - prod -skip_tags: true -image: Visual Studio 2022 -configuration: Release -platform: x64 -before_build: -- git submodule update --init --recursive -- ps: tools\windows\premake5.exe vs2022 -build: - project: build/gsc-tool.sln - verbosity: minimal -test: false -artifacts: -- path: build/bin/x64/release/gsc-tool.exe -deploy: -- provider: GitHub - auth_token: - secure: VTY5eMFd/IOYDIZQeMM0J0uYss+wmTwreE+Hi0lXAQABQ/4igmCvqCFZ5DsrWhY/ - on: - branch: prod