-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build script to generate correct zip names Co-authored-by: Radu-Cristian Popa <[email protected]>
- Loading branch information
1 parent
701a062
commit 3f218d3
Showing
5 changed files
with
72 additions
and
6 deletions.
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,5 @@ | ||
name: Environment setup | ||
description: Sets up Node and pnpm | ||
|
||
runs: | ||
using: 'composite' | ||
|
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,46 @@ | ||
name: Nightly build | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 1-6' | ||
workflow_dispatch: | ||
inputs: {} | ||
|
||
permissions: | ||
contents: write | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build-nightly: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Environment setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Build | ||
id: build | ||
run: | | ||
pnpm build | ||
echo "VERSION=$(jq -r '.version' './dist/chrome/manifest.json')" >> $GITHUB_OUTPUT | ||
- name: Delete existing release | ||
run: gh release delete nightly --cleanup-tag --yes | ||
continue-on-error: true | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
- name: Create GH Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
dist/*.zip | ||
tag_name: 'nightly' | ||
name: Nightly ${{ steps.build.outputs.VERSION }} | ||
prerelease: true |
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ data-testid | |
nums | ||
|
||
# scripts and 3rd party terms | ||
nvmrc | ||
typecheck | ||
prettiercache | ||
corepack | ||
|
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
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