-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] [release] [asset] Build and attach assets on GitHub releases
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI | ||
name: Lint and Test | ||
|
||
on: [ push ] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Build and Attach Files to Release | ||
|
||
on: | ||
release: | ||
types: [ published ] # Trigger when a release is published | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./github/actions/setup-node | ||
- name: Build | ||
run: npm run build:lib | ||
- name: Rename files | ||
run: mv lib/adapter/checkout.js lib/adapter/adapter.js && mv lib/global/checkout.js lib/global/global.js | ||
- name: Upload adapter.js | ||
run: gh release upload ${{ github.event.release.tag_name }} lib/adapter/adapter.js --clobber | ||
- name: Upload global.js | ||
run: gh release upload ${{ github.event.release.tag_name }} lib/global/global.js --clobber |