Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
xela92 authored Aug 5, 2024
1 parent 08a2bc7 commit dada952
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,8 @@ jobs:
env:
UPLOAD_KEY: ${{ secrets.UPLOAD_KEY }}
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"
id: prepare_backend
- uses: actions/setup-node@v4
with:
node-version: '16.x'
- run: cd webmanager && npm install && npm run-script build-prod && cd ..
id: build_frontend
- run: make
id: build_backend
if: ${{ success() }}
- name: Upload artifacts
id: upload
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 }}" \;;
- name: Test GitHub Action if statement (true)
env:
WHO_TO_TRUST: ${{ secrets.SECRET_TOKEN }}
if: env.WHO_TO_TRUST == 'TrustNo1'
run: echo "I know what the secret token is!"

0 comments on commit dada952

Please sign in to comment.