mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
35 lines
959 B
YAML
35 lines
959 B
YAML
name: Build and publish dev version
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '10.x'
|
|
registry-url: 'https://npm.pkg.github.com'
|
|
- uses: actions/checkout@v2
|
|
- run: yarn install
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build
|
|
if: ${{ success() }}
|
|
run: yarn build
|
|
- name: Install lftp
|
|
if: ${{ success() }}
|
|
run: sudo apt-get update && sudo apt-get install --yes lftp
|
|
- name: Publish
|
|
if: ${{ success() }}
|
|
shell: bash
|
|
env:
|
|
LFTP_USER: ${{ secrets.lftpUser }}
|
|
LFTP_PASSWORD: ${{ secrets.lftpPassword }}
|
|
LFTP_SITE: ${{ secrets.lftpSite }}
|
|
run: |
|
|
lftp -e "set ssl:check-hostname false; open --user $LFTP_USER --env-password $LFTP_SITE && mirror --verbose --reverse --delete --exclude=.htaccess build code; exit"
|