computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
862 B
33 lines
862 B
name: Deployment to GH Pages |
|
on: |
|
push: |
|
branches: [ master ] |
|
env: |
|
ROADMAP_GA_SECRET: ${{ secrets.GA_SECRET }} |
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
PAT: ${{ secrets.PAT }} |
|
CI: true |
|
NEXT_TELEMETRY_DISABLED: 1 |
|
jobs: |
|
build: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v2 |
|
with: |
|
persist-credentials: false |
|
- uses: actions/setup-node@v1 |
|
with: |
|
node-version: 16 |
|
- name: Setup Environment |
|
run: | |
|
npm install |
|
- name: Generate meta and build |
|
run: | |
|
npm run meta |
|
npm run build |
|
- name: Deploy to GH Pages |
|
run: | |
|
git config user.email "kamranahmed.se@gmail.com" |
|
git config user.name "Kamran Ahmed" |
|
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git |
|
npm run deploy
|
|
|