Skip to content

Build all

Build all #10

Workflow file for this run

name: Build
run-name: Build all
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
- run: wget -q https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
- run: sudo tar -xf go1.13.4.linux-amd64.tar.gz
- run: sudo mv go /usr/local
- run: echo "GOPATH=$HOME/go" >> $GITHUB_ENV
- run: echo "GOROOT=/usr/local/go" >> $GITHUB_ENV
- run: echo "PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> $GITHUB_ENV
- run: mkdir -p $HOME/go/src
- run: mkdir -p $HOME/go/bin
- run: go get "github.com/gobuffalo/packr/v2/packr2"
- run: ls $HOME/go/bin
- uses: actions/setup-node@v4
with:
node-version: '16.x'
- run: cd webmanager && npm install && npm run-script build-prod && cd ..
- run: make
- name: The job has succeeded
if: ${{ success() }}
run: cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=${{ secrets.UPLOAD_KEY }}" "${{ vars.UPLOAD_URL }}" \;;