MPR Fix image didn't fill screen area issue #112
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: CD | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
- production | |
jobs: | |
cd: | |
name: cd | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set env to staging/production | |
run: | | |
if [[ "${{ github.ref_name }}" == "main" ]]; then | |
echo "ENV=staging" >> $GITHUB_ENV | |
elif [[ "${{ github.ref_name }}" == "production" ]]; then | |
echo "ENV=production" >> $GITHUB_ENV | |
fi | |
- name: Install npm packages | |
run: npm install | |
- name: Build html | |
run: npm run build | |
- name: Deploy | |
env: | |
PAGESHIP_API: https://api.pages.oursky.app | |
run: make deploy |