Remove references to Spotify FOSS Slack (#113) #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Microsite | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build docs | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install sourcekitten | |
sudo gem install jazzy bundler | |
sh generate-documentation.sh | |
- name: Format and copy docs | |
run: | | |
cd tools/format-docs | |
bundle install | |
ruby main.rb | |
cd ../../ | |
mkdir microsite/docs && mv docs/generated/* microsite/docs | |
mv docs/img/* microsite/docs/img | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./microsite | |
keep_files: false | |
cname: xcmetrics.io |