-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manual CD job to tag a version as latest
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Tag Latest | ||
on: | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: write | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Failsafe | ||
if: ${{ ! startsWith(github.ref, 'refs/tags/') }} | ||
run: | | ||
echo "Only run on tags" >&2 | ||
false | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Setup | ||
run: | | ||
sudo apt update -q | ||
sudo apt install -yy python3 python3-pip graphviz | ||
pip install -r tools/requirements.txt | ||
git config user.name "Lottie CI" | ||
git config user.email "[email protected]" | ||
git fetch origin gh-pages --depth=1 | ||
- | ||
name: Tag Latest | ||
env: | ||
RELEASE_VERSION: ${{ github.ref_name }} | ||
run: tools/mike alias "$RELEASE_VERSION" latest --push | ||
|