Skip to content

Commit be4b1d0

Browse files
committed
Merge pull request #466 from rtfpessoa/test-actions
fix s3 upload
2 parents 81b0f67 + 7e37ce3 commit be4b1d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test-and-publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ jobs:
8484
uses: actions/download-artifact@v3
8585
with:
8686
name: versions
87+
- name: Store version
88+
run: echo "version=$(cat .version)" >> $GITHUB_ENV
8789
- name: Configure Git
8890
run: |
8991
git config user.email "[email protected]"
@@ -140,6 +142,11 @@ jobs:
140142
yarn publish --tag $(cat .tag) --non-interactive --new-version $(cat .version)
141143
# HACK: Restore npm package name
142144
sed -i 's/^ "name":.*/ "name": "diff2html",/g' package.json
145+
- name: Tag commit
146+
uses: tvdias/[email protected]
147+
with:
148+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
149+
tag: "${{ env.version }}"
143150
- name: Upload docs
144151
uses: actions/upload-artifact@v3
145152
with:

0 commit comments

Comments
 (0)