mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Compare commits
7 Commits
dev
..
production
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a25f6d398 | |||
| 322906ff70 | |||
| 935f8ef7d8 | |||
| 92785965b2 | |||
| 405f030364 | |||
| a9b088dcda | |||
| 5c089a4325 |
@@ -1,39 +0,0 @@
|
|||||||
# This workflow will run release using node and then publish a package to GitHub Packages when a release is created
|
|
||||||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
||||||
|
|
||||||
name: Snapshot Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*-snapshot' # run only on version tags like v1.0.0-snapshot
|
|
||||||
# - 'v*' # Run only on version tags like v1.0.0
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: sportsmanager2-stage
|
|
||||||
|
|
||||||
- name: Set up Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
|
|
||||||
- name: Install npm dependencies
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Run build script
|
|
||||||
run: npm run release
|
|
||||||
|
|
||||||
- name: Create GitHub Release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
prerelease: true
|
|
||||||
name: SNAPSHOT
|
|
||||||
files: package/packages/com_sportsmanager.zip
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
name: Deploy production branch to dtfb.de
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ['production']
|
||||||
|
paths: ['src/structure/**']
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: rsync deployments
|
||||||
|
uses: burnett01/rsync-deployments@7.0.1
|
||||||
|
with:
|
||||||
|
switches: -avzr
|
||||||
|
path: src/structure/
|
||||||
|
remote_path: ${{ secrets.DTFB_PROD_PATH }}
|
||||||
|
remote_host: ${{ secrets.DTFB_PROD_HOST }}
|
||||||
|
remote_port: ${{ secrets.DTFB_PROD_PORT }}
|
||||||
|
remote_user: ${{ secrets.DTFB_PROD_USER }}
|
||||||
|
remote_key: ${{ secrets.DTFB_PROD_KEY }}
|
||||||
|
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
name: Deploy production branch to kickern-hamburg.de
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ['production']
|
||||||
|
paths: ['src/structure/**']
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: rsync deployments
|
||||||
|
uses: burnett01/rsync-deployments@7.0.1
|
||||||
|
with:
|
||||||
|
switches: -avzr
|
||||||
|
path: src/structure/
|
||||||
|
remote_path: ${{ secrets.KICKERN_PROD_PATH }}
|
||||||
|
remote_host: ${{ secrets.KICKERN_PROD_HOST }}
|
||||||
|
remote_port: ${{ secrets.KICKERN_PROD_PORT }}
|
||||||
|
remote_user: ${{ secrets.KICKERN_PROD_USER }}
|
||||||
|
remote_key: ${{ secrets.KICKERN_PROD_KEY }}
|
||||||
|
|
||||||
Reference in New Issue
Block a user