Skip to content

Commit

Permalink
only build releases (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthkoole authored Aug 8, 2024
1 parent d0beb73 commit 5431f6e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
- [ ] Ik heb mijn aanpassingen gecheckt op spelfouten.
- [ ] Als ik gebruik heb gemaakt van links, dan heb ik gecheckt of deze werken.
- [ ] Ik heb gebruik gemaakt van de templates en formats van het algoritmekader.
- [ ] Deze pull-request gaat naar de juiste branch (in principe mergen we eerst naar de branch `release` alvorens te mergen naar de `main` branch).
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 5431f6e

Please sign in to comment.