Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
chore: create a github action
Browse files Browse the repository at this point in the history
  • Loading branch information
monstajoe2002 committed Dec 12, 2023
1 parent 05e5cfa commit 4da5f26
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
push:
branches:
- release/minor
release:
types:
- created
jobs:
merge:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "monstajoe2002"
- name: Merge to master
run: |
git checkout master
git merge --no-ff release/minor
git push origin master
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install
publish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/')
run: npm run deploy\:minor
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 comments on commit 4da5f26

Please sign in to comment.