Skip to content

Commit

Permalink
Automatically set version on build
Browse files Browse the repository at this point in the history
  • Loading branch information
RicBent committed Aug 1, 2022
1 parent a99e54a commit a96e3d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v2
- name: Set version
shell: bash
run: |
sed -i -e 's/{{VERSION}}/${{ env.RELEASE_VERSION }}/g' migaku_mpv.html
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion migaku_mpv.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<option>Hidden</option>
</select>

<div id="versionInfo">v0.8.0</div>
<div id="versionInfo">v{{VERSION}}</div>
</div>

<div id="subsList">
Expand Down

0 comments on commit a96e3d5

Please sign in to comment.