Skip to content

Commit

Permalink
build: trigger release pipeline daily and upload artifacts to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
wenytang-ms committed Jan 4, 2024
1 parent 4413f05 commit 2c894d0
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,31 @@
name: "CD"

on:
workflow_dispatch:
schedule:
- cron: "0 16 * * *"

jobs:
cd:
CD:
runs-on: "ubuntu-latest"
steps:
- name: validate branch
if: ${{ github.ref != 'refs/heads/main' || github.ref != 'refs/heads/dev' }}
- name: Validate branch
if: ${{ github.ref != 'refs/heads/dev' }}
run: |
echo It's not allowed to run CD on other branch except main and dev.
exit 1
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.ref }}
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: 18

- name: semver-releaser
uses: heyvito/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: build visx
- name: Build visx
run: |
npm run package
npm install
npx vsce package --no-dependencies
- name: upload release info to artifact
uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v3
with:
name: release
path: |
Expand Down

0 comments on commit 2c894d0

Please sign in to comment.