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
|
2024-10-20 10:11:19 -04:00
|
|
|
uses: actions/ssh-agent@forgejo
|
2024-10-20 09:40:10 -04:00
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
|
2024-10-20 10:11:19 -04:00
|
|
|
instance-urls: "www.coastalcommits.com"
|
2024-10-20 10:18:29 -04:00
|
|
|
- name: Add instance URLs to known_hosts
|
|
|
|
run: ssh-keyscan -H www.coastalcommits.com >> ~/.ssh/known_hosts
|
2024-10-20 09:22:51 -04:00
|
|
|
- name: Setup Node.js
|
2025-01-27 04:51:18 +00:00
|
|
|
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # 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}"
|
2024-10-20 09:40:10 -04:00
|
|
|
git config --global user.email "${GITHUB_ACTOR}@noreply@coastalcommits.com"
|
|
|
|
git remote set-url origin git@www.coastalcommits.com:${{ 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
|