mirror of
https://github.com/13hannes11/focus_annotator.git
synced 2024-09-03 23:21:01 +02:00
add publishing action
This commit is contained in:
committed by
GitHub
parent
e2a010f58b
commit
267be7d237
49
.github/workflows/build_and_publish.yml
vendored
Normal file
49
.github/workflows/build_and_publish.yml
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
name: Build and publish
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: docker-compose up
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2.3.1
|
||||
with:
|
||||
name: executables
|
||||
path: |
|
||||
*.AppImage
|
||||
build-windows:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build (Windows)
|
||||
run: docker-compose -f docker-compose.windows.yml up
|
||||
- name: rename windows artifact
|
||||
run: mv package.zip windows.zip
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2.3.1
|
||||
with:
|
||||
name: executables
|
||||
path: |
|
||||
*.zip
|
||||
|
||||
publish:
|
||||
needs: [build, build-windows]
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
- uses: "marvinpinto/action-automatic-releases@v1.2.1"
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: false
|
||||
files: |
|
||||
*.AppImage
|
||||
*.zip
|
||||
Reference in New Issue
Block a user