mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-07-28 04:08:05 +00:00
github: override app name for beta releases
Also upload everything to beta subdomain (beta subdomain will be used as "staging" for stable release as well).
This commit is contained in:
@@ -4,14 +4,16 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v1.*'
|
- 'v1.*'
|
||||||
- '!v1.*-beta.*'
|
|
||||||
- '!v1.*-rc.*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set env to beta
|
||||||
|
if: contains(github.ref, '-beta.') || contains(github.ref, '-rc.')
|
||||||
|
run: |
|
||||||
|
echo "REACT_APP_NAME=Pybricks Code (Beta)" >> $GITHUB_ENV
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
@@ -33,4 +35,4 @@ jobs:
|
|||||||
LFTP_PASSWORD: ${{ secrets.lftpPassword }}
|
LFTP_PASSWORD: ${{ secrets.lftpPassword }}
|
||||||
LFTP_SITE: ${{ secrets.lftpSite }}
|
LFTP_SITE: ${{ secrets.lftpSite }}
|
||||||
run: |
|
run: |
|
||||||
lftp -e "open --user $LFTP_USER --env-password $LFTP_SITE && mirror --verbose --reverse --delete --exclude=.htaccess --exclude=.well-known build code; exit"
|
lftp -e "open --user $LFTP_USER --env-password $LFTP_SITE && mirror --verbose --reverse --delete --exclude=.htaccess --exclude=.well-known build beta; exit"
|
||||||
|
|||||||
Reference in New Issue
Block a user