-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 1.03 KB
/
main.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
on:
push:
workflow_dispatch:
schedule:
- cron: '30 8 * * *'
env:
TZ: Asia/Shanghai
PUSHOVER_USER_KEY: ${{ secrets.PUSHOVER_USER_KEY }}
PUSHOVER_APP_TOKEN: ${{ secrets.PUSHOVER_APP_TOKEN }}
HUGO_DRAFT_BASE_URL: ${{ secrets.HUGO_DRAFT_BASE_URL }}
DEPLOY_GITHUB_ACCESS_TOKEN: ${{ secrets.DEPLOY_GITHUB_ACCESS_TOKEN }}
DEPLOY_GITHUB_USER_EMAIL: ${{ secrets.DEPLOY_GITHUB_USER_EMAIL }}
DEPLOY_GITHUB_USER_NAME: ${{ secrets.DEPLOY_GITHUB_USER_NAME }}
OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
OSS_DRAFT_BUCKET: ${{ secrets.OSS_DRAFT_BUCKET }}
OSS_DRAFT_ENDPOINT: ${{ secrets.OSS_DRAFT_ENDPOINT }}
OSS_PROD_BUCKET: ${{ secrets.OSS_PROD_BUCKET }}
OSS_PROD_ENDPOINT: ${{ secrets.OSS_PROD_ENDPOINT }}
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: curl -LO https://github.com/opensound-org/gitops-cli/releases/latest/download/gitops-cli
- run: chmod +x gitops-cli
- run: ./gitops-cli deploy hugo