Skip to content

Commit

Permalink
ci(github): add workflow to generate screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Mar 21, 2021
1 parent c71e491 commit 2dace7f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 13 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/screenshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Screenshots
on: [push]
jobs:
setup:
name: Build App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Generate Optimized Images
run: npm run generate:images
- name: Build
run: npm run build:ionic:browser
- name: Generate Screenshots
run: npm run generate:screenshots
- name: Upload Build Artifact
uses: actions/upload-artifact@v2
with:
name: screenshots
path: dist
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"generate:images": "node scripts/images/squoosh.js",
"generate:release": "semantic-release",
"generate:screenshots": "",
"generate:screenshots": "npx jest --config ./jest.config.js",
"generate:resources": "node scripts/resources.js",
"generate:resources:assets": "npm run generate:resources:assets:android && npm run generate:resources:assets:ios && npm run generate:resources:assets:pwa",
"generate:resources:assets:android": "node scripts/resources/assets-android.js",
Expand Down

0 comments on commit 2dace7f

Please sign in to comment.