Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ming1016 authored Sep 18, 2024
1 parent 6328a45 commit b62a6ad
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,3 @@ jobs:
- 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/upload-artifact@v2.2.4
with:
name: "戴铭的开发小册子.zip"
path: "戴铭的开发小册子.zip"

0 comments on commit b62a6ad

Please sign in to comment.