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.
30 lines
810 B
30 lines
810 B
name: Deployment to GitHub Pages |
|
on: |
|
push: |
|
branches: [ master ] |
|
jobs: |
|
build: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v2 |
|
- uses: actions/setup-node@v1 |
|
with: |
|
node-version: 12 |
|
- name: Setup Environment |
|
run: | |
|
npm install -g yarn |
|
yarn install |
|
- name: Generate meta and builld |
|
run: | |
|
yarn meta |
|
yarn build |
|
env: |
|
ROADMAP_GH_SECRET: ${{ secrets.GA_SECRET }} |
|
- name: Deploy to GitHub Pages |
|
env: |
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
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
|
|
|