Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: create release by actions
Browse files Browse the repository at this point in the history
  • Loading branch information
loo-y committed Sep 13, 2024
1 parent f4b10c2 commit 50a5c31
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/autopackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ "feat_2024" ]

permissions:
contents: write

jobs:
build-and-release:
runs-on: ubuntu-latest
Expand All @@ -22,15 +25,15 @@ jobs:
npm run build:extension
- name: 创建 Release
id: create_release
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
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
draft: false
prerelease: false

- name: 上传 Release 资产
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 50a5c31

Please sign in to comment.