Skip to content

Commit

Permalink
Move from Travis to GitHub Actions (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
notlmn authored Mar 28, 2020
1 parent 7b35001 commit 3af671e
Show file tree
Hide file tree
Showing 19 changed files with 4,160 additions and 4,747 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-auto.yml
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
56 changes: 56 additions & 0 deletions .github/workflows/deploy-tag.yml
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 }}
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
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
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

Binary file added media/promo-1400x560.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/promo-440x280.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/promo-920x680.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/screenshot-1280x800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/screenshot-640x400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed media/screenshot.png
Binary file not shown.
Loading

0 comments on commit 3af671e

Please sign in to comment.