-
Notifications
You must be signed in to change notification settings - Fork 21
49 lines (47 loc) · 1.38 KB
/
publish.yml
File metadata and controls
49 lines (47 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Publish new Version
on:
workflow_dispatch:
jobs:
bump-version:
if: github.repository == 'lukasbach/pensieve'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: 'paramsinghvc/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: bump-version
if: always() && (needs.bump-version.result == 'success' || needs.bump-version.result == 'skipped')
strategy:
matrix:
include:
- os: windows
image: windows-latest
arch: ""
- os: macos
image: macos-latest
arch: arm64
- os: macos
image: macos-15-intel
arch: x64
runs-on: ${{ matrix.image }}
permissions:
contents: write
deployments: write
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: yarn install
- run: yarn lint
- run: yarn run typecheck
- run: yarn run build:docs
- run: yarn make ${{ matrix.arch != '' && '--arch=' || '' }}${{ matrix.arch }}
- run: yarn publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
GITHUB_REPOSITORY: ${{ github.repository }}