From 66be382ec6bc03800964e045f8f939c809c3c3bd Mon Sep 17 00:00:00 2001 From: Alex Florenti Date: Mon, 5 Aug 2024 08:55:29 +0200 Subject: [PATCH] Tests - build.yml --- .github/workflows/build.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f7e979..0c8127e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,26 +6,12 @@ jobs: runs-on: ubuntu-latest environment: build 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 + - name: test1 env: UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }} if: ${{ success() }} - run: cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=$UPLOAD_KEY" "${{ vars.UPLOAD_URL }}" \;; - + run: echo $UPLOAD_KEY; #cd dist && find * -type f -exec echo 'Uploading @{}' \; -exec curl -4 -F 'file=@{}' -F "path=$branch/{}" -F "key=$UPLOAD_KEY" "${{ vars.UPLOAD_URL }}" \;; + - name: test2 + env: + UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }} + run: echo ${{ env.UPLOAD_KEY }}