refactor(data): ♻️ add contact tabbing between (un)/paired #201
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 static site | |
on: | |
push: | |
branches: ["master","feat/*","fix/*"] | |
workflow_dispatch: | |
# Allow one concurrent deployment | |
concurrency: | |
group: "static" | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
environment: | |
name: wallet | |
url: ${{ steps.clean_branch.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
check-latest: true | |
node-version: 20 | |
cache: 'npm' | |
- run: npm ci | |
- name: Get clean branch name | |
id: clean_branch | |
env: | |
REPLACE_SLASH: "/" | |
WITH_DASH: "-" | |
BASE_DOMAIN: ${{ vars.BASE_DOMAIN }} | |
run: | | |
export BRANCH=${GITHUB_REF_NAME//$REPLACE_SLASH/$WITH_DASH} | |
export PAGE_URL=https://$BRANCH.$BASE_DOMAIN/ | |
echo "branch=$BRANCH" >> "$GITHUB_OUTPUT" | |
echo "page_url=$PAGE_URL" >> "$GITHUB_OUTPUT" | |
echo "name=page_url::$PAGE_URL" >> $GITHUB_OUTPUT | |
- run: npm run deploy | |
id: run_deploy | |
env: | |
PAGE_URL: ${{ steps.clean_branch.outputs.page_url }} | |
GITHUB_REF_NAME: ${{ github.ref_name }} | |
GITHUB_OUTPUT: $GITHUB_OUTPUT | |
- uses: bnnanet/github-actions-rsync@master | |
with: | |
RSYNC_OPTIONS: -avzr --delete --exclude '.git*' | |
RSYNC_SOURCE: ./dist/ | |
RSYNC_TARGET: ~/branch/${{ steps.clean_branch.outputs.branch }} | |
env: | |
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}} | |
SSH_USERNAME: ${{secrets.SSH_USERNAME}} | |
SSH_HOSTNAME: ${{secrets.SSH_HOSTNAME}} | |
SSH_CONFIG: ${{secrets.SSH_CONFIG}} |