-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (41 loc) · 1.4 KB
/
release-dev.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Release library and media to artifact(dev)
on:
push:
branches: [dev]
workflow_dispatch:
jobs:
release:
name: Release to github and artifact
runs-on: ubuntu-latest
env:
CI: false
appname: library
steps:
- uses: actions/checkout@v3
name: Check out code
- name: Create Zip Archive for artifact
run: |
mkdir ${{ env.appname }} artifacts
cp -r apps ${{ env.appname }}
cp -r docs ${{ env.appname }}
cp -r template ${{ env.appname }}
cp *.md ${{ env.appname }}
cp ${{ env.appname }}.json ${{ env.appname }}
zip -r ${{ env.appname }}-dev.zip ${{ env.appname }}
cp ${{ env.appname }}-dev.zip artifacts
- name: Upload To cloudflare r2
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.CLOUDFLARE_SECRET_ID }}
r2-secret-access-key: ${{ secrets.CLOUDFLARE_SECRET_KEY }}
r2-bucket: artifact
source-dir: artifacts
destination-dir: ./dev/websoft9/plugin/library
# release media(dev)
- name: Trigger websoft9/media-dev.yml workflow
uses: peter-evans/repository-dispatch@v2
with:
repository: websoft9/websoft9
event-type: media_dev_event
token: ${{secrets.MYGITHUB_ADMIN_TOKEN}}