Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
chore: use scripts/out folder in the build worklow
Browse files Browse the repository at this point in the history
Resolves: #4
  • Loading branch information
gitcoindev committed Oct 11, 2023
1 parent a89dcdb commit cece58a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: yarn build

- name: Add commit SHA file to build folder
run: echo -n $(echo "${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}" | cut -c1-7) > scripts/commit.txt
run: echo -n $(echo "${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}" | cut -c1-7) > scripts/out/commit.txt

- name: Prepare Deployment Artifact
env:
Expand All @@ -41,7 +41,7 @@ jobs:
echo "event_name=$EVENT_NAME,pr_number=$PR_NUMBER,sha=$SHA"
mkdir -p ./pr
echo "event_name=$EVENT_NAME,pr_number=$PR_NUMBER,sha=$SHA," > ./pr/pr_number
cd ./scripts && zip -r ../pr/pull-request.zip ./*
cd ./scripts/out && zip -r ../pr/pull-request.zip ./*
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit cece58a

Please sign in to comment.