File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 22
22
uses : actions/download-artifact@v3
23
23
with :
24
24
name : docs
25
+ path : docs/
25
26
- name : Publish to S3
27
+ working-directory : docs
26
28
run : |
27
- cd docs
28
29
aws s3 sync --region eu-west-1 --delete . s3://diff2html.xyz --metadata-directive REPLACE --cache-control max-age=31557600
29
30
aws cloudfront create-invalidation --region eu-west-1 --distribution-id $AWS_CF_DISTRIBUTION_ID --paths /index.html /demo.html /sitemap.xml /robots.txt
Original file line number Diff line number Diff line change 26
26
export NEXT_VERSION="$(/bin/git-version --folder=$PWD --release-branch=master)"
27
27
echo "Next version is ${NEXT_VERSION}"
28
28
echo "${NEXT_VERSION}" > .version
29
+ echo "version=${NEXT_VERSION}" >> $GITHUB_ENV
29
30
- name : Get next npm tag name
30
31
run : |
31
32
if [ "${GITHUB_REF_NAME}" = "master" ]; then
@@ -140,6 +141,11 @@ jobs:
140
141
yarn publish --tag $(cat .tag) --non-interactive --new-version $(cat .version)
141
142
# HACK: Restore npm package name
142
143
sed -i 's/^ "name":.*/ "name": "diff2html",/g' package.json
144
+ - name : Tag commit
145
+
146
+ with :
147
+ repo-token : " ${{ secrets.GITHUB_TOKEN }}"
148
+ tag : " ${{ env.version }}"
143
149
- name : Upload docs
144
150
uses : actions/upload-artifact@v3
145
151
with :
You can’t perform that action at this time.
0 commit comments