From 41849592292b060d82d901559b01a7e7771775e2 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 14 May 2020 18:10:49 -0500 Subject: [PATCH 1/3] Add GitHub Action to build and publish releases on each commit. --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4764551 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: release + +on: + push: + branches: [ master ] + +jobs: + + build: + name: build + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: ilammy/msvc-dev-cmd@v1 + - run: echo "::add-path::C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build" + - run: echo "::set-env name=INCLUDE::$env:INCLUDE;$env:JAVA_HOME\include;$env:JAVA_HOME\include\win32" + - run: | + choco install pandoc + nmake dist + - uses: actions/upload-artifact@v1 + with: + name: package + path: tolk.zip + + release: + name: release + runs-on: ubuntu-latest + needs: [build] + steps: + - uses: actions/download-artifact@v1 + with: + name: package + - uses: meeDamian/github-release@2.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref }} + files: ./package/tolk.zip + gzip: false + allow_override: true From 819711e3593bce40bd641977ef243c0912f0af2e Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 18 May 2020 11:41:31 -0500 Subject: [PATCH 2/3] remove appveyor.yml to eliminate confusion. --- appveyor.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 2190d20..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,25 +0,0 @@ -image: Visual Studio 2017 -version: 1.0.{build} -environment: - INCLUDE: C:\Program Files\Java\jdk10\include;C:\Program Files\Java\jdk10\include\win32 -install: - - cinst pandoc - - set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build -build_script: - - call vcvars64.bat - - nmake /nologo dist -artifacts: - - path: tolk.zip - name: Tolk -deploy: - release: tolk-v$(appveyor_build_version) - description: 'Tolk screen reader abstraction library' - provider: GitHub - auth_token: - secure: EORyCtVzeWcS+3dDsbyL51W23kE3u7MiRnu91qCYe/TZvs+mGSA44co46sdb5HU2 - artifact: tolk.zip - draft: false - prerelease: false - on: - branch: master - APPVEYOR_REPO_TAG: true \ No newline at end of file From 6d2f4301d0a1ba9b8fa6ecdd9cd65b9f9af58f32 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 18 May 2020 11:43:25 -0500 Subject: [PATCH 3/3] Link to GitHub Releases build. The username should eventually be updated, but I wanted the link to be accurate. --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index c0780e0..d16fa2f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ # Tolk: Screen Reader Abstraction Library -* [Latest build from AppVeyor](https://ci.appveyor.com/api/projects/dkager/tolk/artifacts/tolk.zip?branch=master) +* [Latest build](https://github.com/ndarilek/tolk/releases/download/refs%2Fheads%2Fmaster/tolk.zip) * [Project page](https://davykager.com/projects/tolk/) ## Introduction