Skip to content

Merge pull request #13 from ThomasOrs/Thomas/ProjectConfig #22

Merge pull request #13 from ThomasOrs/Thomas/ProjectConfig

Merge pull request #13 from ThomasOrs/Thomas/ProjectConfig #22

Workflow file for this run

name: Build
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: Install Deno 🦕
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: 'Build Executable'
run: deno task build
- name: Upload Executables as Artifacts
if: github.ref_type == 'branch'
uses: actions/upload-artifact@v2
with:
name: ${{ format('dash-{0}-{1}-{2}', github.run_id, github.run_number, github.run_attempt) }}
path: 'executables/*'
- name: Upload Executables as Release
if: github.ref_type == 'tag'
uses: AButler/upload-release-assets@v2.0
with:
files: 'executables/*'
release-tag: ${{ github.ref_name }}
repo-token: ${{ secrets.GITHUB_TOKEN }}