fork/replay-manager-for-slippi

git clone https://git.julia.blue/fork/replay-manager-for-slippi

jmlee337Initial commit372f190

2.3.6
1.2 KiB46 linesraw
1name: Publish
2
3on:
4  push:
5    branches:
6      - main
7
8jobs:
9  publish:
10    # To enable auto publishing to github, update your electron publisher
11    # config in package.json > "build" and remove the conditional below
12    if: ${{ github.repository_owner == 'electron-react-boilerplate' }}
13
14    runs-on: ${{ matrix.os }}
15
16    strategy:
17      matrix:
18        os: [macos-latest]
19
20    steps:
21      - name: Checkout git repo
22        uses: actions/checkout@v3
23
24      - name: Install Node and NPM
25        uses: actions/setup-node@v3
26        with:
27          node-version: 18
28          cache: npm
29
30      - name: Install and build
31        run: |
32          npm install
33          npm run postinstall
34          npm run build
35
36      - name: Publish releases
37        env:
38          # These values are used for auto updates signing
39          APPLE_ID: ${{ secrets.APPLE_ID }}
40          APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS }}
41          CSC_LINK: ${{ secrets.CSC_LINK }}
42          CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
43          # This is used for uploading release assets to github
44          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45        run: |
46          npm exec electron-builder -- --publish always --win --mac --linux