Skip to content

Commit

Permalink
github_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ishandutta2007 committed May 13, 2023
1 parent 259784f commit e07c451
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Deploy
run-name: ${{ github.actor }} is testing GitHub Actions
on: [push]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
ONESIGNAL_APP_ID: "mytestid"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up node
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Build to zip
run: npm run build

- name: Upload to Chrome Web Store
uses: mobilefirstllc/cws-publish@latest
with:
action: 'upload' # one of: upload, publish, testers
client_id: ${{ secrets.CLIENT }}
client_secret: ${{ secrets.SECRET }}
refresh_token: ${{ secrets.TOKEN }}
extension_id: '32-CHAR EXTENSION ID'
zip_file: 'ZIP FILE PATH'

0 comments on commit e07c451

Please sign in to comment.