-
Notifications
You must be signed in to change notification settings - Fork 410
30 lines (29 loc) · 1.09 KB
/
build.yml
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
name: Build Package
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@master
- uses: actions/checkout@v2
- name: submodules-init
uses: snickerbockers/submodules-init@v4
- name: Import PAT from Actions secrets
run: |
cd SwiftPamphletApp/App
sed -i '' s/'gitHubAccessToken = ""'/'gitHubAccessToken = "${{ secrets.PAT }}"'/ SwiftPamphletAppConfig.swift
cd ..
- name: Build
run: |
if grep -q 'gitHubAccessToken = ""' ./SwiftPamphletApp/App/SwiftPamphletAppConfig.swift ; then
echo "please setup your personal access token to Actions secrets and name it to PAT" && exit
fi
chmod +x ./compile.command
/bin/bash -c ./compile.command
zip -r9 戴铭的开发小册子.zip 戴铭的开发小册子.app
- name: Upload App.zip
uses: actions/[email protected]
with:
name: "戴铭的开发小册子.zip"
path: "戴铭的开发小册子.zip"