Skip to content

Commit

Permalink
action: auto release build
Browse files Browse the repository at this point in the history
  • Loading branch information
netcan committed Jun 14, 2023
1 parent 0190fea commit 20d675f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -13,3 +15,20 @@ jobs:

- run: yarn install --frozen-lockfile
- run: yarn build

- uses: a7ul/[email protected]
id: compress
with:
command: c
cwd: ./
files: |
./build/
outPath: build.tar.gz

- uses: ncipollo/release-action@v1
with:
artifacts: "build.tar.gz"
body: "build.tar.gz"
token: ${{ secrets.GITHUB_TOKEN }}
commit: "main"
tag: "latest"

0 comments on commit 20d675f

Please sign in to comment.