Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Merge pull request #335 from atsign-foundation/dependabot/github_acti… #216

Merge pull request #335 from atsign-foundation/dependabot/github_acti…

Merge pull request #335 from atsign-foundation/dependabot/github_acti… #216

name: DeployStaging
on:
push:
branches:
- trunk
env:
URL: 'dev3.atsign.wtf'
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
deploy:
if: ${{ github.repository == 'atsign-foundation/docs.atsign.com' }}
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: '16'
- name: Cache dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Build Staging
run: npm run build:staging
- name: Deploy Staging
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
with:
personal_token: ${{ secrets.MY_GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
cname: ${{ env.URL }}