-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (65 loc) · 2.07 KB
/
publish.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Publish
on:
push:
tags:
- '*'
jobs:
build-linux:
permissions:
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout
name: Publish Binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
with:
deno-version: v2.x
- name: Build
run: |
deno install
deno publish
deno compile -A -o bin/quicksubmit-linux index.ts
deno compile -A -o bin/quicksubmit-macos --target x86_64-apple-darwin index.ts
- name: Upload Linux binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/quicksubmit-linux
asset_name: quicksubmit-linux-amd64
tag: ${{ github.ref }}
overwrite: true
- name: Upload macOS binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/quicksubmit-macos
asset_name: quicksubmit-macos-amd64
tag: ${{ github.ref }}
overwrite: true
build-win:
permissions:
contents: write # This is required for actions/checkout
name: Build Windows Binaries
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup Deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
with:
deno-version: v2.x
- name: Build
run: |
deno install
deno compile -A -o bin/quicksubmit-win.exe --target x86_64-pc-windows-msvc index.ts
- name: Upload Windows binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/quicksubmit-win.exe
asset_name: quicksubmit-windows-amd64.exe
tag: ${{ github.ref }}
overwrite: true