generated from fregante/browser-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from Travis to GitHub Actions (#5)
- Loading branch information
Showing
19 changed files
with
4,160 additions
and
4,747 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Automatically create a new version/tag, if new commits are available since the last tag | ||
name: Auto-tagger | ||
|
||
on: | ||
schedule: | ||
- cron: '01 10 * * 1' # Every Monday at 10:01 https://crontab.guru/#01_10_*_*_1 | ||
|
||
jobs: | ||
create-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: fregante/setup-git-token@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: | | ||
if [[ $(git tag -l --points-at HEAD) = "" ]]; then | ||
export VER=$(npx daily-version) | ||
git tag $VER -m $VER | ||
git push origin $VER | ||
fi |
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,56 @@ | ||
name: Deployment | ||
|
||
on: | ||
push: | ||
tags: | ||
- "20.*" | ||
- "21.*" | ||
- "22.*" | ||
- "23.*" | ||
- "24.*" | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm install | ||
- run: npm test | ||
- name: Version and tag | ||
run: | | ||
export VER=$(echo "$GITHUB_REF" | sed -e 's/refs\/tags\///') | ||
echo https://github.com/$GITHUB_REPOSITORY/tree/$VER > distribution/SOURCE_URL | ||
npm run version | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: built-extension | ||
path: distribution | ||
|
||
deploy-to-chrome: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v1 | ||
with: | ||
name: built-extension | ||
path: distribution | ||
- run: cd distribution && npx chrome-webstore-upload-cli upload --auto-publish | ||
env: | ||
EXTENSION_ID: nlaionblcaejecbkcillglodmmfhjhfi | ||
CLIENT_ID: ${{ secrets.CLIENT_ID }} | ||
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | ||
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} | ||
|
||
deploy-to-firefox: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v1 | ||
with: | ||
name: built-extension | ||
path: distribution | ||
- run: cd distribution && npx web-ext-submit | ||
env: | ||
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} | ||
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }} |
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,13 @@ | ||
name: Test | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm install | ||
- run: npm test |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.