First step towards GitHub Actions rewrite #2
Workflow file for this run
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
--- | |
name: Build | |
on: | |
pull_request: | |
branches: | |
- master | |
- production | |
push: | |
branches: | |
- master | |
- production | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Build and generate Artifact | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
docker compose build | |
# This step should probably be rewritten | |
- name: Generate | |
run: | | |
docker run \ | |
--rm \ | |
sce_webpack:latest \ | |
/bin/bash -c "npx webpack --config webpack.dev.js && npm run teamcity" | |
- name: Generate | |
run: | | |
mkdir artifacts | |
docker run \ | |
--rm \ | |
-v $(pwd)/artifacts:/app/artifacts:delegated \ | |
sce_webpack:latest \ | |
/bin/bash -c "npm run build && cd dist && zip -r ../artifacts/screenly-chrome-extension.zip *" |