2023-06-25 04:49:23 +00:00
|
|
|
name: Build/Publish
|
|
|
|
|
|
|
|
on:
|
2023-06-25 05:00:39 +00:00
|
|
|
workflow_call:
|
2023-06-25 04:49:23 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
cache: 'npm'
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build --if-present
|
|
|
|
- name: Install SSH key
|
|
|
|
uses: shimataro/ssh-key-action@v2
|
|
|
|
with:
|
|
|
|
key: ${{ secrets.GITEA_SSH_KEY }}
|
2023-06-25 07:18:37 +00:00
|
|
|
name: gitea
|
2023-06-25 04:49:23 +00:00
|
|
|
known_hosts: ${{ secrets.GITEA_KNOWN_HOST }}
|
2023-06-25 07:18:37 +00:00
|
|
|
- name: Publish
|
|
|
|
run: npm run semantic-release
|
2023-06-25 07:22:59 +00:00
|
|
|
- name: Setup tmate session
|
|
|
|
uses: mxschmitt/action-tmate@v3
|
|
|
|
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled && failure() }}
|
|
|
|
with:
|
|
|
|
limit-access-to-actor: true
|