Skip to content

Commit

Permalink
Tests - build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xela92 committed Aug 5, 2024
1 parent c7a54d5 commit 66be382
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 66be382

Please sign in to comment.