Skip to content

Bump express from 4.18.2 to 4.19.2 (#101) #64

Bump express from 4.18.2 to 4.19.2 (#101)

Bump express from 4.18.2 to 4.19.2 (#101) #64

Workflow file for this run

name: "Publish :: Staging"
on:
push:
branches: [main]
concurrency:
group: "publish-staging"
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: "Checkout personal-webapp"
uses: actions/checkout@v3
with:
fetch-depth: 0
path: ${{ github.workspace }}/personal-webapp
- name: "Checkout caponetto.github.io"
uses: actions/checkout@v3
with:
fetch-depth: 0
path: ${{ github.workspace }}/caponetto.github.io
token: ${{ secrets.TOKEN }}
repository: caponetto/caponetto.github.io
- name: "Setup environment"
uses: ./personal-webapp/.github/actions/setup-env
with:
path: personal-webapp
- name: "Build"
working-directory: ${{ github.workspace }}/personal-webapp
env:
GTM_ID: ""
CONTEXT_PATH: "/staging"
VERSION: ${{ github.sha }}
shell: bash
run: |
yarn build:prod
- name: "Deploy to GitHub Pages - staging version (caponetto.github.io)"
working-directory: ${{ github.workspace }}/caponetto.github.io
shell: bash
run: |
echo "Reset deployment dir"
rm -rf staging
mkdir staging
cd staging
echo "Copy resources"
cp -r ${{ github.workspace }}/personal-webapp/dist/* .
echo "Commit changes and push"
git add .
git commit -m "Deploy Staging ${{ github.sha }}" || echo "No changes."
git push origin main