Skip to content

v1.663

v1.663 #75

Workflow file for this run

name: Update API server
on:
push:
branches:
- master
workflow_dispatch:
jobs:
github-com:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup Environment
env:
DEPLOY_KEY_GITHUB_COM: ${{ secrets.DEPLOY_KEY_GITHUB_COM }}
run: |
mkdir -p ~/.ssh
echo "${DEPLOY_KEY_GITHUB_COM}" > ~/.ssh/id_rsa
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
- name: Setup Git
env:
USER_EMAIL: ${{ secrets.USER_EMAIL }}
USER_NAME: ${{ secrets.USER_NAME }}
run: |
git config --global user.email "${USER_EMAIL}"
git config --global user.name "${USER_NAME}"
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Update API
run: |
export DIR_TMP="$(mktemp -d)"
export VER=$(curl -s https://raw.githubusercontent.com/flydog-sdr/FlyDog_SDR_GPS/master/Makefile | \
head -2 | cut -d " " -f3 | tr -d "\n")
git clone https://github.com/flydog-sdr/customised-scripts ${DIR_TMP}/customised-scripts
git clone [email protected]:flydog-sdr/docs.git ${DIR_TMP}/github.com
echo "${VER}" > ${DIR_TMP}/customised-scripts/VER
cd ${DIR_TMP}/customised-scripts
zip ${DIR_TMP}/github.com/docs/.vuepress/public/scripts.zip *
cd ${DIR_TMP}/github.com
git add .
git commit -m "Scripts for Build.${VER}"
git push --force