Add macOS release step

This commit is contained in:
Anmol Sethi
2020-02-14 20:03:54 -05:00
parent 4aa15401c3
commit 61d1af0413
8 changed files with 450 additions and 435 deletions

View File

@@ -11,7 +11,6 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -21,7 +20,9 @@ jobs:
- name: Run yarn fmt
uses: ./ci/image
with:
args: yarn && yarn fmt
args: yarn && yarn vscode && yarn fmt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint:
runs-on: ubuntu-latest
@@ -32,7 +33,6 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -42,9 +42,33 @@ jobs:
- name: Run yarn lint
uses: ./ci/image
with:
args: yarn && yarn lint
args: yarn && yarn vscode && yarn lint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-amd64:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run yarn test
uses: ./ci/image
with:
args: yarn && yarn vscode && yarn test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-linux-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@@ -53,7 +77,6 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -64,3 +87,25 @@ jobs:
uses: ./ci/image
with:
args: yarn && yarn vscode && ./ci/release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run release.sh
run: yarn && yarn vscode && ./ci/release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}