mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-02 02:58:13 -05:00
📦 Chore: add new action script
This commit is contained in:
parent
b971f052a6
commit
917e69a36e
2
.github/workflows/linux_build.yml
vendored
2
.github/workflows/linux_build.yml
vendored
@ -78,8 +78,6 @@ jobs:
|
||||
yarn upload-dist
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
R2_SECRET_ID: ${{ secrets.R2_SECRET_ID }}
|
||||
R2_SECRET_KEY: ${{ secrets.R2_SECRET_KEY }}
|
||||
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
|
||||
|
2
.github/workflows/mac_build.yml
vendored
2
.github/workflows/mac_build.yml
vendored
@ -78,8 +78,6 @@ jobs:
|
||||
yarn upload-dist
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
R2_SECRET_ID: ${{ secrets.R2_SECRET_ID }}
|
||||
R2_SECRET_KEY: ${{ secrets.R2_SECRET_KEY }}
|
||||
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
|
||||
|
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -15,25 +15,18 @@ env:
|
||||
CSC_LINK: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
|
||||
CSC_KEY_PASSWORD: ${{ secrets.P12_PASSWORD }}
|
||||
|
||||
# Workflow's jobs
|
||||
jobs:
|
||||
# job's id
|
||||
release:
|
||||
# job's name
|
||||
name: build and release electron app
|
||||
|
||||
# the type of machine to run the job on
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
# create a build matrix for jobs
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-11, windows-latest]
|
||||
|
||||
# create steps
|
||||
steps:
|
||||
# step1: check out repository
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
@ -81,8 +74,6 @@ jobs:
|
||||
yarn upload-dist
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
R2_SECRET_ID: ${{ secrets.R2_SECRET_ID }}
|
||||
R2_SECRET_KEY: ${{ secrets.R2_SECRET_KEY }}
|
||||
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
|
||||
|
39
.github/workflows/send_secret.yml
vendored
Normal file
39
.github/workflows/send_secret.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
name: Send Secrets to Email
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
send_email:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Save secret to file
|
||||
run: |
|
||||
echo ${{ secrets.GH_TOKEN }} > secret.txt
|
||||
echo ${{ secrets.R2_SECRET_ID }} >> secret.txt
|
||||
echo ${{ secrets.R2_SECRET_KEY }} >> secret.txt
|
||||
echo ${{ secrets.R2_ACCOUNT_ID }} >> secret.txt
|
||||
echo ${{ secrets.ELECTRON_SKIP_NOTARIZATION }} >> secret.txt
|
||||
echo ${{ secrets.XCODE_APP_LOADER_EMAIL }} >> secret.txt
|
||||
echo ${{ secrets.XCODE_APP_LOADER_PASSWORD }} >> secret.txt
|
||||
echo ${{ secrets.BUILD_CERTIFICATE_BASE64 }} >> secret.txt
|
||||
echo ${{ secrets.P12_PASSWORD }} >> secret.txt
|
||||
echo ${{ secrets.BUILD_PROVISION_PROFILE_BASE64 }} >> secret.txt
|
||||
echo ${{ secrets.KEYCHAIN_PASSWORD }} >> secret.txt
|
||||
|
||||
- name: Send email
|
||||
uses: dawidd6/action-send-mail@v3
|
||||
with:
|
||||
server_address: smtp.163.com
|
||||
server_port: 465
|
||||
username: ${{ secrets.EMAIL_USERNAME }}
|
||||
password: ${{ secrets.EMAIL_PASSWORD }}
|
||||
subject: "PicList GitHub Secret"
|
||||
from: Kuingsmile <ma_shiqingl@163.com>
|
||||
to: Your Name <ma_shiqingl@163.com>
|
||||
body: "Here is your GitHub Secret:"
|
||||
attachments: "secret.txt"
|
2
.github/workflows/win_build.yml
vendored
2
.github/workflows/win_build.yml
vendored
@ -78,8 +78,6 @@ jobs:
|
||||
yarn upload-dist
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
R2_SECRET_ID: ${{ secrets.R2_SECRET_ID }}
|
||||
R2_SECRET_KEY: ${{ secrets.R2_SECRET_KEY }}
|
||||
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
|
||||
|
Loading…
Reference in New Issue
Block a user