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
|
|
|
|
container: catthehacker/ubuntu:act-latest
|
2024-10-17 15:20:23 -04:00
|
|
|
steps:
|
2024-10-20 09:22:51 -04:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@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
|
|
|
|
uses: actions/setup-node@v4
|
2024-10-17 15:20:23 -04:00
|
|
|
with:
|
|
|
|
node-version: 18
|
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
|
|
|
|
run: npm ci
|
|
|
|
- name: Publish plugins to Release branch
|
|
|
|
run: npm run publish
|