prefer enlarge view on redo #11
Workflow file for this run
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: npm publish | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
cache: yarn | |
- uses: calcit-lang/[email protected] | |
with: | |
version: "0.8.45" | |
- run: caps --ci && yarn && yarn compile-server && yarn compile-page && yarn release-page | |
# - run: mkdir -p dist-server && mv js-out/bundle.js dist-server | |
# name: Copy server scripts | |
- name: Upload web assets | |
id: deploy | |
uses: Pendect/[email protected] | |
env: | |
DEPLOY_KEY: ${{secrets.rsync_private_key}} | |
with: | |
flags: '-avzr --progress' | |
options: '' | |
ssh_options: '' | |
src: 'dist/*' | |
dest: '[email protected]:/web-assets/repo/${{ github.repository }}' | |
- name: Display status from deploy | |
run: echo "${{ steps.deploy.outputs.status }}" | |
# - name: Upload server script | |
# id: deploy-server | |
# uses: Pendect/[email protected] | |
# env: | |
# DEPLOY_KEY: ${{secrets.rsync_private_key}} | |
# with: | |
# flags: '-avzr --progress' | |
# options: '' | |
# ssh_options: '' | |
# src: 'dist-server/*' | |
# dest: '[email protected]:/servers/rebase-hell/' | |
# - name: Display status from deploy | |
# run: echo "${{ steps.deploy-server.outputs.status }}" | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |