Skip to content

Commit

Permalink
Manual CD job to tag a version as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Aug 31, 2024
1 parent db5fd3e commit f56a1a0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tag-latest.yml
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

0 comments on commit f56a1a0

Please sign in to comment.