Skip to content

Polkadot Staging

Polkadot Staging #3585

name: Polkadot Staging
on:
workflow_dispatch:
jobs:
build:
name: build and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v2
with:
node-version: "18"
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Publish
env:
app_id: ${{ secrets.ALGOLIA_POLKADOT_APPID }}
api_key: ${{ secrets.ALGOLIA_POLKADOT_API }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Polkadot Wiki CI"
echo "machine github.com login w3fdeploy password ${{ secrets.ACCESS_KEY }}" > ~/.netrc
yarn && yarn polkadot:build && echo "staging.polkadot.network" > polkadot-wiki/static/CNAME && GIT_USER=w3fdeploy PUBLISHING=true PROJECT_NAME=polkadot-wiki-staging yarn run polkadot:publish-gh-pages