Skip to content

Commit

Permalink
ci(semantic-release): configure semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Aug 1, 2024
1 parent 01abc64 commit aef6032
Show file tree
Hide file tree
Showing 5 changed files with 6,731 additions and 4 deletions.
40 changes: 36 additions & 4 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Produce plots
run: python plotter.py plots/helloScafi.yml ./build/exports/helloScafi ".*" "result" plots/
UpdateDoc:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
Expand All @@ -53,16 +53,48 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: autoupdate readme from scripts changes"
ci-success:
runs-on: ubuntu-latest
release:
permissions:
contents: write
packages: write
issues: write
concurrency:
# Only one release job at a time. Strictly sequential.
group: release
cancel-in-progress: false
needs:
- Build
- UpdateDoc
runs-on: ubuntu-22.04
if: >-
!github.event.repository.fork
&& (
github.event_name != 'pull_request'
|| github.event.pull_request.head.repo.full_name == github.repository
)
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
- name: Install Node
uses: actions/setup-node@v4.0.3
with:
node-version-file: package.json
- run: |
npm install
npx semantic-release
env:
GITHUB_TOKEN: ${{ github.token }}
success:
runs-on: ubuntu-22.04
needs:
- Build
- UpdateDoc
- release
if: >-
always() && (
contains(join(needs.*.result, ','), 'failure')
|| !contains(join(needs.*.result, ','), 'cancelled')
)
steps:
- name: Verify that there were no failures
run: ${{ !contains(join(needs.*.result, ','), 'failure') }}
run: ${{ !contains(join(needs.*.result, ','), 'failure') }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ target

.sims
venv
node_modules/
Loading

0 comments on commit aef6032

Please sign in to comment.