Merge pull request #328 from Sage/230816-DS-colorTokenAddForDivider #326
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: Semantic Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
# Builds token library from current data/tokens.json file and releases it. | |
release: | |
name: Build and release library | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- run: yarn install --frozen-lockfile | |
- name: Build | |
run: yarn run build | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v3.0.1 | |
with: | |
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
git-user-signingkey: true | |
git-commit-gpgsign: true | |
- name: Release package to public NPM registry | |
run: npx semantic-release@19 --debug | |
env: | |
GITHUB_TOKEN: ${{ secrets.ADMIN_ACCESS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GIT_COMMITTER_NAME: Sage Carbon | |
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |
- name: Upload documentation via ftp | |
uses: SamKirkland/FTP-Deploy-Action@4.3.0 | |
with: | |
server: ${{ secrets.FTP_HOST }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: "./dist/docs/" | |
server-dir: "./sage/docs/" |