2024-10-20 09:47:22 -04:00
|
|
|
name: Publish Plugins to Release Branch
|
2024-10-17 15:20:23 -04:00
|
|
|
|
|
|
|
on: workflow_dispatch
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
2024-10-20 09:22:51 -04:00
|
|
|
name: Publish plugins
|
2024-10-20 09:20:58 -04:00
|
|
|
runs-on: docker
|
2025-02-07 00:10:59 +00:00
|
|
|
container: www.coastalcommits.com/cswimr/actions:yarn@sha256:3af293679759bde9009ada9849f59b5b8a4c4b085710d6fafa9f88a60d2cd6f5
|
2024-10-17 15:20:23 -04:00
|
|
|
steps:
|
2024-10-20 09:22:51 -04:00
|
|
|
- name: Checkout repository
|
2024-12-27 15:37:52 -05:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2024-10-20 09:40:10 -04:00
|
|
|
- name: Set up SSH key
|
2025-03-27 16:07:21 -04:00
|
|
|
uses: ssh-agent-fork@v0.9.1
|
2024-10-20 09:40:10 -04:00
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
|
2025-03-27 15:22:46 -04:00
|
|
|
instance-urls: "c.csw.im"
|
2024-10-20 10:18:29 -04:00
|
|
|
- name: Add instance URLs to known_hosts
|
2025-03-27 15:22:46 -04:00
|
|
|
run: ssh-keyscan -H c.csw.im >> ~/.ssh/known_hosts
|
2024-10-20 09:22:51 -04:00
|
|
|
- name: Setup Node.js
|
2025-03-17 03:50:49 +00:00
|
|
|
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
|
2024-10-17 15:20:23 -04:00
|
|
|
with:
|
|
|
|
node-version: 18
|
2024-12-22 12:16:18 -05:00
|
|
|
cache: 'yarn'
|
2024-10-20 09:22:51 -04:00
|
|
|
- name: Configure Git
|
|
|
|
run: |
|
|
|
|
git config --global user.name "${GITHUB_ACTOR}"
|
2025-03-27 15:22:46 -04:00
|
|
|
git config --global user.email "${GITHUB_ACTOR}@noreply@c.csw.im"
|
|
|
|
git remote set-url origin git@c.csw.im:${{ github.repository }}
|
2024-10-20 09:22:51 -04:00
|
|
|
- name: Install dependencies
|
2024-12-22 12:16:18 -05:00
|
|
|
run: yarn install --frozen-lockfile
|
2024-10-20 09:22:51 -04:00
|
|
|
- name: Publish plugins to Release branch
|
2024-12-23 01:34:38 -05:00
|
|
|
run: yarn run publish
|