Skip to content

fix: Featured Timeline #69

fix: Featured Timeline

fix: Featured Timeline #69

Workflow file for this run

name: Deploy to Staging (stg)
on:
push:
branches: [stg]
workflow_dispatch:
concurrency:
group: deploy-to-stg
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment: deploy-to-stg
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT_CHECKOUT }}
submodules: "recursive"
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "yarn"
- uses: actions/cache/restore@v4
with:
path: |
public
.cache
key: gatsby-v1-${{ hashFiles('public') }}
restore-keys: |
gatsby-v1-
- run: yarn install --immutable
- run: yarn build
env:
# "bucketName" is a required option for gatsby-plugin-s3
AWS_S3_BUCKET_NAME: "example"
ALL_PAGES_TO_NO_INDEX: "true"
GTM_ID: ${{ vars.GTM_ID }}
PREFIX_PATHS: "true"
GATSBY_SITE_URL: "https://bicstone.github.io/portfolio"
PATH_PREFIX: "/portfolio"
- run: |
echo -e "User-agent: *\nDisallow: /" > ./public/robots.txt
- uses: actions/upload-pages-artifact@v3
with:
path: ./public
- uses: actions/deploy-pages@v4
- uses: actions/cache/save@v4
with:
path: |
public
.cache
key: gatsby-v1-${{ hashFiles('public') }}