Merge pull request #342 from Sage/231110-DS-1342Tile #335
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/[email protected] | |
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/[email protected] | |
with: | |
server: ${{ secrets.FTP_HOST }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: "./dist/docs/" | |
server-dir: "./sage/docs/" |