From 8337b858a983bf62c5634b589446fbbc921b1f54 Mon Sep 17 00:00:00 2001 From: Sven Skender Date: Mon, 6 Dec 2021 21:21:45 +0100 Subject: [PATCH] Create Release CI --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..f7252e7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release CI + +on: + push: + tags: + - '*' + +jobs: + + build-win: + + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Build TORUS-Qt.exe + run: DOCKER_BUILDKIT=1 docker build --target torus-qt-win --tag torus-qt-win:latest . + + - name: Copy artifacts + run: docker cp $(docker create --rm torus-qt-win):/opt/torus-core/release/TORUS-Qt.exe TORUS-Qt.exe + + - name: Create release + uses: ncipollo/release-action@v1 + with: + allowUpdates: false + artifacts: "TORUS-Qt.exe" + draft: false + prerelease: false + token: ${{ secrets.GITHUB_TOKEN }}