From b37176489ba57fa26a543f5ce481233f61e3db6b Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Fri, 3 Jan 2020 14:49:31 +0000 Subject: [PATCH 1/7] :rocket: Update workflow --- .github/workflows/deploy.yml | 6 ++---- CHANGELOG.md | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d0af4a6..2e7b418 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,10 +15,8 @@ jobs: - run: npm install - name: Get version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}" - uses: lannonbr/vsce-action@master name: Publish extension with: - args: "publish $VERSION -p $VSCE_TOKEN" - env: - VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} + args: "publish $VERSION -p ${{secrets.VSCE_TOKEN}}" diff --git a/CHANGELOG.md b/CHANGELOG.md index 014ffd4..1abe25f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ All notable changes to the "pitaya-smoothie" extension will be documented in thi ![FIX](https://img.shields.io/badge/-FIX-gray.svg?colorB=FC427B) > 🐛 Remove border in editor warnings and errors [`12f2ae5`](https://github.com/trallard/pitaya_smoothie/commit/2f2ae524c3ebc291152d98033fee91cc4d3fc6b0)
-> 📦 Add CI for deployment +> 📦 Add CI for deployment [`64ab538`](https://github.com/trallard/pitaya_smoothie/commit/64ab5385bbb79f8423dd9099d6ff66ae451c9af4) ## RELEASE: 1.0.0 From 350e9ca45f258ebd812df5b2c9ede2bb60e345cb Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Fri, 3 Jan 2020 15:13:58 +0000 Subject: [PATCH 2/7] :rocket: Ensure the version is kept --- .github/workflows/deploy.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2e7b418..8e0721b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,8 +15,13 @@ jobs: - run: npm install - name: Get version id: get_version - run: echo "::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}" + run: | + echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + echo $VERSION - uses: lannonbr/vsce-action@master name: Publish extension + env: + VERSION: ${{ steps.vars.outputs.VERSION }} + VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} with: - args: "publish $VERSION -p ${{secrets.VSCE_TOKEN}}" + args: "publish $VERSION -p $VSCE_TOKEN" From 7c8238f427abe9934da157326a8433d21cd7459b Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Fri, 3 Jan 2020 15:28:35 +0000 Subject: [PATCH 3/7] testing action --- .github/workflows/deploy.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8e0721b..090d6c0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,9 @@ name: Publish release on: release: types: + - deleted - created + - edited jobs: deploy: @@ -16,12 +18,12 @@ jobs: - name: Get version id: get_version run: | - echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + echo "::set-env name=VERSION::${GITHUB_REF/refs\/tags\//}" echo $VERSION - - uses: lannonbr/vsce-action@master - name: Publish extension - env: - VERSION: ${{ steps.vars.outputs.VERSION }} - VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} - with: - args: "publish $VERSION -p $VSCE_TOKEN" + # - uses: lannonbr/vsce-action@master + # name: Publish extension + # env: + # VERSION: ${{ env.VERSION }} + # VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} + # with: + # args: "publish $VERSION -p $VSCE_TOKEN" From b83236c4545bbbde223e60607439ffd3234d4b27 Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Fri, 3 Jan 2020 15:37:47 +0000 Subject: [PATCH 4/7] testing action --- .github/workflows/deploy.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 090d6c0..2d022eb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,11 +1,6 @@ name: Publish release -on: - release: - types: - - deleted - - created - - edited +on: push jobs: deploy: @@ -18,8 +13,12 @@ jobs: - name: Get version id: get_version run: | - echo "::set-env name=VERSION::${GITHUB_REF/refs\/tags\//}" - echo $VERSION + echo "::set-env name=SOURCE_TAG::${GITHUB_REF#refs/tags/} + echo $SOURCE_TAG + echo "The github context is:" + echo "${{ toJson(github) }}" + - name: Testing vars + run: echo $SOURCE_TAG # - uses: lannonbr/vsce-action@master # name: Publish extension # env: From f9122736dafc1f64ef6aa9907289407e5a427a3e Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Fri, 3 Jan 2020 15:40:10 +0000 Subject: [PATCH 5/7] testing action --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2d022eb..8fcbd43 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,12 +13,12 @@ jobs: - name: Get version id: get_version run: | - echo "::set-env name=SOURCE_TAG::${GITHUB_REF#refs/tags/} - echo $SOURCE_TAG + echo "::set-env name=SOURCE_TAG::${GITHUB_REF#refs/tags/}" + echo "$SOURCE_TAG" echo "The github context is:" echo "${{ toJson(github) }}" - name: Testing vars - run: echo $SOURCE_TAG + run: echo "$SOURCE_TAG" # - uses: lannonbr/vsce-action@master # name: Publish extension # env: From 9a35873e78a8034babf9b9e427d7a8099252dc88 Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Fri, 3 Jan 2020 15:45:30 +0000 Subject: [PATCH 6/7] testing action --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8fcbd43..bc36537 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,7 @@ jobs: - name: Get version id: get_version run: | - echo "::set-env name=SOURCE_TAG::${GITHUB_REF#refs/tags/}" + echo "::set-env name=SOURCE_TAG::${GITHUB_REF/refs\/tags\//}" echo "$SOURCE_TAG" echo "The github context is:" echo "${{ toJson(github) }}" From 005818e181da61e9a17935594bc4942493918c61 Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Fri, 3 Jan 2020 15:52:35 +0000 Subject: [PATCH 7/7] testing action --- .github/workflows/deploy.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bc36537..888fe82 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,9 @@ name: Publish release -on: push +on: + release: + types: + - published jobs: deploy: @@ -17,12 +20,10 @@ jobs: echo "$SOURCE_TAG" echo "The github context is:" echo "${{ toJson(github) }}" - - name: Testing vars - run: echo "$SOURCE_TAG" - # - uses: lannonbr/vsce-action@master - # name: Publish extension - # env: - # VERSION: ${{ env.VERSION }} - # VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} - # with: - # args: "publish $VERSION -p $VSCE_TOKEN" + - uses: lannonbr/vsce-action@master + name: Publish extension + env: + VERSION: ${{ env.VERSION }} + VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} + with: + args: "publish $VERSION -p $VSCE_TOKEN"