Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed May 15, 2024
1 parent 6af7674 commit 41515db
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ jobs:
bash .github/workflows/upload.sh
'${{ matrix.target.platform }}-${{ steps.vars.outputs.ARCH }}-node${{ steps.vars.outputs.NODE_VERSION }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 11 additions & 11 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ on:
jobs:
release:
permissions:
actions: write
contents: write

runs-on: ubuntu-latest

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Check out
uses: actions/checkout@v4
Expand All @@ -24,14 +28,10 @@ jobs:

- name: Create release
if: ${{ steps.version.outputs.tag }}
run: >
curl
-X POST
-H "Accept: application/vnd.github.v3+json"
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}"
https://api.github.com/repos/${{ github.repository }}/releases
-d '{
"name": "${{ steps.version.outputs.tag }}",
"tag_name": "${{ steps.version.outputs.tag }}",
"target_commitish": "${{ github.sha }}"
}'
run: gh release create ${{ steps.version.outputs.tag }} --title ${{ steps.version.outputs.tag }}

- name: Build
run: gh workflow run build --ref ${{ steps.version.outputs.tag }}

- name: Publish
run: gh workflow run npm --ref ${{ steps.version.outputs.tag }}
2 changes: 1 addition & 1 deletion .github/workflows/upload.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variant=$1

name=$(cat package.json | jq -r '.name' | cut -d / -f 2)
tag_name=$(gh release view --json name --jq .name)
tag_name=$(gh release view --json tagName --jq .tagName)
upload_file=$RUNNER_TEMP/$name-$tag_name-$variant.zip

echo name: $name
Expand Down
2 changes: 2 additions & 0 deletions cordis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@
name: '@cordisjs/plugin-webui'
- id: ks2osk
name: '@cordisjs/plugin-manager'
- id: 4cj730
name: '@cordisjs/plugin-notifier'
- id: iyq73n
name: cordis/group
label: Satori
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@satorijs/boilerplate",
"version": "0.0.2",
"version": "0.0.3",
"private": true,
"files": [
".env",
Expand Down Expand Up @@ -38,9 +38,10 @@
"@cordisjs/plugin-hmr": "^0.2.1",
"@cordisjs/plugin-http": "^0.4.2",
"@cordisjs/plugin-manager": "^0.1.0",
"@cordisjs/plugin-notifier": "^0.1.0",
"@cordisjs/plugin-proxy-agent": "^0.3.0",
"@cordisjs/plugin-server": "^0.2.2",
"@cordisjs/plugin-webui": "^0.1.1",
"@cordisjs/plugin-webui": "^0.1.3",
"@satorijs/adapter-discord": "^4.5.0",
"@satorijs/adapter-kook": "^4.6.0",
"@satorijs/adapter-qq": "^4.7.0",
Expand All @@ -49,8 +50,8 @@
"@satorijs/core": "^4.0.0",
"@satorijs/plugin-database": "^0.1.1",
"@satorijs/plugin-server": "^2.5.0",
"@satorijs/plugin-status": "^0.1.0",
"cordis": "^3.15.0",
"@satorijs/plugin-status": "^0.1.1",
"cordis": "^3.15.1",
"minato": "^3.3.0"
}
}

0 comments on commit 41515db

Please sign in to comment.