chore: add GitHub Actions
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
name: 'GitHub Release'
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
- '!v*.*.*-*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
@@ -0,0 +1,18 @@
|
||||
name: 'schedule'
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0,6,12,18 * * *'
|
||||
|
||||
jobs:
|
||||
gitee:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: ttionya/Repository-Sync-Hub@v1
|
||||
with:
|
||||
target_repository: 'https://gitee.com/ttionya/BitwardenRS-Backup.git'
|
||||
http_access_name: 'ttionya'
|
||||
http_access_token: ${{ secrets.GITEE_HTTP_ACCESS_TOKEN }}
|
||||
@@ -0,0 +1,18 @@
|
||||
name: 'sync'
|
||||
|
||||
on:
|
||||
push:
|
||||
delete:
|
||||
|
||||
jobs:
|
||||
gitee:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: ttionya/Repository-Sync-Hub@v1
|
||||
with:
|
||||
target_repository: 'https://gitee.com/ttionya/BitwardenRS-Backup.git'
|
||||
http_access_name: 'ttionya'
|
||||
http_access_token: ${{ secrets.GITEE_HTTP_ACCESS_TOKEN }}
|
||||
Reference in New Issue
Block a user