-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (42 loc) · 1.26 KB
/
gopkg.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
47
48
49
50
name: Deploy gopkg
on:
push:
branches:
- master
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
gopkg:
name: ${{ matrix.pkg }}
strategy:
fail-fast: false
matrix:
pkg:
- core
- sdk
- app
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare tag
id: tag
if: startsWith(github.ref, 'refs/tags/')
run: |
VERSION="${GITHUB_REF##refs/tags/}"
echo "Found Tag: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Deploy gopkg
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.ACTIONS_DEPLOY_MODULE_KEY }}
user_name: 'Il Harper'
user_email: '[email protected]'
external_repository: koishi-desktop/${{ matrix.pkg }}
publish_branch: master
publish_dir: packages/${{ matrix.pkg }}
enable_jekyll: true # Not to create .nojekyll since this is not a gh page
commit_message: 'chore: publish ${{ steps.tag.outputs.version }}'
tag_name: ${{ steps.tag.outputs.version }} # Wouldn't create if empty
tag_message: Publish ${{ steps.tag.outputs.version }}