mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-07-27 19:57:11 +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:
|
||||
tags:
|
||||
- 'v1.*'
|
||||
- '!v1.*-beta.*'
|
||||
- '!v1.*-rc.*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
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
|
||||
with:
|
||||
node-version: '12.x'
|
||||
@@ -33,4 +35,4 @@ jobs:
|
||||
LFTP_PASSWORD: ${{ secrets.lftpPassword }}
|
||||
LFTP_SITE: ${{ secrets.lftpSite }}
|
||||
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