Skip to content

Merge pull request #16 from eizedev/dependabot/github_actions/github/… #101

Merge pull request #16 from eizedev/dependabot/github_actions/github/…

Merge pull request #16 from eizedev/dependabot/github_actions/github/… #101

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
name: Run Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Test
shell: pwsh
run: ./build.ps1 -Task Test -Bootstrap
publish:
name: Publish module
# 'v[0-9]+.[0-9]+.[0-9]+' -> v0.1.0
if: startsWith(github.event.ref, 'refs/tags/v')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v4
- name: Publish
shell: pwsh
env:
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY}}
run: ./build.ps1 -Task Publish -Bootstrap