Skip to content

Commit

Permalink
Create & push git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bc3tech committed Jun 13, 2024
1 parent 8d8b21b commit 3e96e76
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/publish-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
needs: build-and-test
runs-on: windows-latest
env:
EXTENSION_VERSION: ${{ needs.build-and-test.outputs.extVersion }}
EXTENSION_VERSION: ${{ needs.build-and-test.outputs.extVersion }}

steps:
- name: Checkout code
Expand Down Expand Up @@ -43,10 +43,22 @@ jobs:
runs-on: ubuntu-latest
permissions: write-all
env:
EXTENSION_VERSION: ${{ needs.build-and-test.outputs.extVersion }}
GH_TOKEN: ${{ github.token }}
EXTENSION_VERSION: ${{ needs.build-and-test.outputs.extVersion }}
GH_TOKEN: ${{ github.token }}

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
show-progress: false
sparse-checkout: |
README.md
- name: Create tag
run: |
git -c user.name="GitHub Actions" -c user.email="[email protected]" tag "v${{ env.EXTENSION_VERSION }}" "${{ github.sha }}"
git push --tags origin
- name: Download artifact
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 3e96e76

Please sign in to comment.