Skip to content

Commit

Permalink
only build releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthkoole committed Jul 10, 2024
1 parent 48c3b79 commit e3f61f0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ on:
- main

jobs:
deploy:
deploy-main:
name: deploy main
runs-on: ubuntu-latest
steps:
- name: get latest release with tag
id: latestrelease
run: |
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/MinBZK/Algoritmekader/releases/latest | jq '.tag_name' | sed 's/\"//g')"
- name: confirm release tag
run: |
echo ${{ steps.latestrelease.outputs.releasetag }}
- uses: actions/checkout@v4
with:
ref: ${{ steps.latestrelease.outputs.releasetag }}

- uses: actions/setup-python@v5
with:
Expand All @@ -18,4 +29,4 @@ jobs:

- run: pip install -r requirements.txt

- run: mkdocs gh-deploy --force
- run: mkdocs gh-deploy --force

0 comments on commit e3f61f0

Please sign in to comment.