Bump express from 4.18.2 to 4.19.2 (#101) #64
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: "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 |