Skip to content

Merge branch 'main' of https://github.com/bicstone/portfolio into fea… #33

Merge branch 'main' of https://github.com/bicstone/portfolio into fea…

Merge branch 'main' of https://github.com/bicstone/portfolio into fea… #33

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
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT_CHECKOUT }}
submodules: "recursive"
- uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
cache: "yarn"
- uses: actions/cache/restore@v3
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@v1
with:
path: ./public
- uses: actions/deploy-pages@v2
- uses: actions/cache/save@v3
with:
path: |
public
.cache
key: gatsby-v1-${{ hashFiles('public') }}