Skip to content

.github/workflows/main.yml #298

.github/workflows/main.yml

.github/workflows/main.yml #298

Workflow file for this run

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