From bc966e5a894181c032a69cae917f0b7b52370c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xenxo=20Espasand=C3=ADn?= Date: Wed, 14 Jun 2023 23:12:51 +0200 Subject: [PATCH] maint(build): github actions deploy (#130) --- .github/workflows/build.yml | 26 +++++++++++++++++++++++++- appveyor.yml | 23 ----------------------- 2 files changed, 25 insertions(+), 24 deletions(-) delete mode 100644 appveyor.yml 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