Skip to content

Commit

Permalink
add release tag on merge, refs #88
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo committed Apr 20, 2024
1 parent 8ab640f commit f955a18
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Sphinx docs to gh-pages

on:
pull_request:
branches:
- main
types:
- closed
workflow_dispatch: # Allow manual triggering

jobs:
sphinx_docs_to_gh-pages:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Parse tag to ENV
run: |
echo RELEASE_TAG=$(docker run --rm -v ${PWD}:/workdir mikefarah/yq .version version.yml ) >> ${GITHUB_ENV}
cat ${GITHUB_ENV}
- uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: ${{ env.RELEASE_TAG }}
tag_exists_error: false

0 comments on commit f955a18

Please sign in to comment.