mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-05-12 21:58:31 +02:00
Update build-macos.yml
This commit is contained in:
parent
2047a3818e
commit
9a0014863d
1 changed files with 14 additions and 7 deletions
21
.github/workflows/build-macos.yml
vendored
21
.github/workflows/build-macos.yml
vendored
|
@ -1,15 +1,12 @@
|
||||||
name: build-macos
|
name: build-macos
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- "src/*.go"
|
|
||||||
- "src/go.mod"
|
|
||||||
- "src/go.sum"
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -47,6 +44,8 @@ jobs:
|
||||||
rm Picocrypt.app.zip
|
rm Picocrypt.app.zip
|
||||||
mv src/Picocrypt Picocrypt.app/Contents/MacOS/Picocrypt
|
mv src/Picocrypt Picocrypt.app/Contents/MacOS/Picocrypt
|
||||||
zip -r Picocrypt.zip Picocrypt.app
|
zip -r Picocrypt.zip Picocrypt.app
|
||||||
|
cd Picocrypt.app
|
||||||
|
zip -rX ../Picocrypt.app.zip *
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
@ -56,3 +55,11 @@ jobs:
|
||||||
Picocrypt.zip
|
Picocrypt.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
Picocrypt.app.zip
|
||||||
|
tag_name: nightly
|
||||||
|
make_latest: true
|
||||||
|
|
Loading…
Add table
Reference in a new issue