-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (33 loc) · 1.13 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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@v4
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@v4
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@v3.0
with:
files: 'executables/*'
release-tag: ${{ github.ref_name }}
repo-token: ${{ secrets.GITHUB_TOKEN }}