devops: add a YYMM subfolder
@@ -76,7 +76,7 @@ jobs:
FOLDER: target/site/apidocs # The folder the action should deploy.
TARGET_FOLDER: apidocs/${{ steps.get_version.outputs.VERSION }}
site:
- name: Genrate site
+ name: Generate site
runs-on: ubuntu-18.04
needs: build
steps:
@@ -93,11 +93,14 @@ jobs:
cp -r cellbase-core/target/site target/site/cellbase-core &&
cp -r cellbase-lib/target/site target/site/cellbase-lib &&
cp -r cellbase-server/target/site target/site/cellbase-server
+ - name: Get data YYMM
+ id: get_date
+ run: echo ::set-output name=YYMM::$(date +%Y%m)
- name: Copy folder content recursively to remote
uses: garygrossgarten/github-action-scp@release
with:
local: target/site
- remote: /mnt/data/site/cellbase/5.0.0-SNAPSHOT
+ remote: /mnt/data/site/cellbase/5.0.0-SNAPSHOT/${{ steps.get_date.YYMM }}
host: 128.232.224.128
username: ${{ secrets.SCP_SITE_USER }}
password: ${{ secrets.SCP_SITE_PASSWORD }}
