Skip to content

Commit

Permalink
Use long git describe in config.md and asset name
Browse files Browse the repository at this point in the history
  • Loading branch information
oakkitten committed May 22, 2022
1 parent dcd8ec8 commit 9003820
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,16 @@ jobs:

- name: Assemble the add-on
run: |
export VERSION="$(git describe --long)"
cd anki_wallpaper
sed -i -r "s/# Wallpaper/\0 $(git describe)/" config.md
sed -i -r "s/# Wallpaper/\0 <version>$VERSION<\/version>/" config.md
zip -r ../anki_wallpaper.ankiaddon *
echo ASSET_NAME="anki_wallpaper-$VERSION.ankiaddon" >> "$GITHUB_ENV"
- name: Store artifact
uses: svenstaro/[email protected]
with:
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: anki_wallpaper.ankiaddon
asset_name: anki_wallpaper.ankiaddon
asset_name: ${{ env.ASSET_NAME }}
5 changes: 5 additions & 0 deletions anki_wallpaper/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
key {
background-color: #44999999;
}

version {
font-weight: normal;
font-size: medium;
}
</style>

# Wallpaper
Expand Down

0 comments on commit 9003820

Please sign in to comment.