-
Notifications
You must be signed in to change notification settings - Fork 84
42 lines (37 loc) · 1.15 KB
/
release-binaries.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
name: release-binaries
on:
workflow_dispatch:
inputs:
release_tag_name:
required: true
type: string
description: >
The tag that a release has been previously created from. Binaries will be attached to this release.
workflow_call:
inputs:
release_tag_name:
required: true
type: string
description: >
The tag that a release has been previously created from. Binaries will be attached to this release.
jobs:
release:
runs-on: macos-13-xl
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- name: Install Task
run: curl -sL https://taskfile.dev/install.sh | sudo bash -s -- -b /usr/local/bin/
- name: Release binaries
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ inputs.release_tag_name }}
NODE_ENV: production
run: |
set -a
source projects/optic/.env.production
task pkg:build -- --no-bytecode --public --public-packages "*" --compress gzip
task pkg:archive pkg:upload