Skip to content

Commit

Permalink
ci: Tweaks to CI
Browse files Browse the repository at this point in the history
- Ignore tag events when running `Validate`
- Ignore tag events when running `Make Documentation`
- Run `Make Documentation` on deploy
- Re-order steps in `Publish Release` to debug issue with outdated changelog in release notes.
  • Loading branch information
seandstewart committed Oct 30, 2024
1 parent c837838 commit 15466cb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Make Documentation
on:
push:
branches: ["main"]
tags-ignore:
- '**'
release:
types:
- published

defaults:
run:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ jobs:
with:
python-version: 3.x
runner: ubuntu-latest
- name: Compile Release Notes
run: make release-notes > release-notes.md
- name: Report Version
run: |
export "RELEASE_VERSION=v$(make report-version)";
export "TARGET_COMMITISH=$(git rev-list -n 1 "${RELEASE_VERSION}")";
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV
echo "TARGET_COMMITISH=${TARGET_COMMITISH}" >> $GITHUB_ENV
- name: Download all the dists
uses: actions/download-artifact@v4
with:
Expand All @@ -108,14 +116,6 @@ jobs:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: Compile Release Notes
run: make release-notes > release-notes.md
- name: Report Version
run: |
export "RELEASE_VERSION=v$(make report-version)";
export "TARGET_COMMITISH=$(git rev-list -n 1 "${RELEASE_VERSION}")";
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV
echo "TARGET_COMMITISH=${TARGET_COMMITISH}" >> $GITHUB_ENV
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Validate
on:
push:
branches:
- '**'
tags-ignore:
- '**'

jobs:
ci:
Expand Down

0 comments on commit 15466cb

Please sign in to comment.