Skip to content

Commit

Permalink
Create Release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sskender committed Dec 6, 2021
1 parent 3a962d0 commit 8337b85
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 8337b85

Please sign in to comment.