Skip to content

Commit

Permalink
ci: Add Publish workflow and update other workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
joshooaj committed Mar 19, 2024
1 parent 7b928e2 commit 330e0e4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/Docs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish Docs
name: Docs

on:
push:
branches:
- main
paths-ignore:
- .github/workflows/CI.yml
- .github/workflows/Test.yml
- .github/workflows/Publish.yml
- tests/**
- .vscode/**

Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on:
workflow_run:
workflows: ["Test"]
types:
- completed
branches:
- main

jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.ref, 'refs/tags/v') }}
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish
env:
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
shell: pwsh
run: ./build.ps1 -Task Publish -Bootstrap
10 changes: 5 additions & 5 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI
name: Test

on:
push:
branches:
Expand All @@ -10,19 +11,18 @@ on:
- main
paths-ignore:
- .github/workflows/Docs.yml
workflow_dispatch:
- .github/workflows/Publish.yml

jobs:
test:
name: Run Tests
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Test
shell: pwsh
run: ./build.ps1 -Task Test -Bootstrap

0 comments on commit 330e0e4

Please sign in to comment.