-
Notifications
You must be signed in to change notification settings - Fork 18
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 #7 from iamarnas/dev
Dev to Master
- Loading branch information
Showing
10 changed files
with
426 additions
and
175 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: publish to marketplace custom branch | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@master | ||
- name: install dependencies | ||
run: npm install | ||
- name: install vsce | ||
run: sudo npm install -g vsce | ||
- name: publish into marketplace | ||
run: vsce publish -p ${{ secrets.TOKEN }} | ||
- name: extract version number | ||
run: | | ||
export BUILD_BRANCH_PARTS=(${GITHUB_REF//// }) | ||
export BUILD_VERSION=$(grep version package.json | awk -F \" '{print $4}') | ||
export TAG_VERSION=$([[ "${BUILD_BRANCH_PARTS[-1]}" == "master" ]] && echo "v$BUILD_VERSION" || echo "${BUILD_BRANCH_PARTS[-1]}-v$BUILD_VERSION") | ||
echo "build version: ${BUILD_VERSION}" | ||
echo "tag version: ${TAG_VERSION}" | ||
echo "TAG_VERSION=${TAG_VERSION}" >> ${GITHUB_ENV} | ||
- name: package the extension | ||
run: vsce package | ||
- name: release package to github repo | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
repo_token: '${{ secrets.GITHUB_TOKEN }}' | ||
automatic_release_tag: ${{ env.TAG_VERSION }} | ||
prerelease: false | ||
title: 'Json to Dart Extension ${{ env.TAG_VERSION }}' | ||
files: | | ||
./json-to-dart-${{ env.BUILD_VERSION }}.vsix |
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,33 @@ | ||
name: release master branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@master | ||
- name: install dependencies | ||
run: npm install | ||
- name: install vsce | ||
run: sudo npm install -g vsce | ||
- name: extract version number | ||
run: | | ||
export BUILD_VERSION=$(grep version package.json | awk -F \" '{print $4}') | ||
echo "BUILD_VERSION=$BUILD_VERSION" >> $GITHUB_ENV | ||
- name: package the extension | ||
run: vsce package | ||
- name: release package to github repo | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
repo_token: '${{ secrets.GITHUB_TOKEN }}' | ||
automatic_release_tag: master-v${{ env.BUILD_VERSION }} | ||
prerelease: true | ||
title: 'Json to Dart Extension master-v${{ env.BUILD_VERSION }}' | ||
files: | | ||
./json-to-dart-${{ env.BUILD_VERSION }}.vsix |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.