-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from marp-team/circleci-2.1
Update CircleCI configuration to use v2.1
- Loading branch information
Showing
6 changed files
with
180 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: GitHub Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
github-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: marp-team/actions@v1 | ||
with: | ||
task: release | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
upload-standalone-binary: | ||
needs: github-release | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macOS-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.16.0' | ||
- name: Install with yarn | ||
run: npm install -g yarn && yarn install | ||
- name: Build and create standalone binaries | ||
run: yarn build:standalone | ||
- name: Create package | ||
run: | | ||
[[ $MATRIX_OS == ubuntu* ]] && export TARGET=linux | ||
[[ $MATRIX_OS == win* ]] && export TARGET=win | ||
[[ $MATRIX_OS == mac* ]] && export TARGET=mac | ||
yarn standalone:pack | ||
env: | ||
MATRIX_OS: ${{ matrix.os }} | ||
- name: Upload created asset to GitHub Release | ||
uses: marp-team/actions@v1 | ||
with: | ||
task: upload | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: dist |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.