Commit 9a7f687 1 parent e8b484c commit 9a7f687 Copy full SHA for 9a7f687
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ jobs:
20
20
runs-on : ubuntu-latest
21
21
steps :
22
22
- uses : actions/checkout@v3
23
+ - name : Echo version
24
+ run : |
25
+ version=$(git rev-parse HEAD)
26
+ echo "Replacing version number in *.html with $version"
23
27
- name : Replace version
24
28
run : |
25
29
mkdir production
26
30
cp -R -v *.html *.gif css js production
27
31
version=$(git rev-parse HEAD)
28
32
echo "Replacing version number in *.html with $version"
29
33
perl -pi -e 's/{VERSION}/'$version'/g' production/*.html
30
- - name : Echo version
31
- run : |
32
- version=$(git rev-parse HEAD)
33
- echo "Replacing version number in *.html with $version"
34
34
- name : Deploy to GitHub Pages
35
35
id : deployment
36
36
uses : JamesIves/github-pages-deploy-action@v4
You can’t perform that action at this time.
0 commit comments