-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.4 KB
/
forge-artifacts.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: "Prepare Artifacts"
on:
workflow_call:
jobs:
forge-artifacts:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
- name: "Install Foundry"
uses: "foundry-rs/[email protected]"
with:
version: stable
- name: "Install NodeJS"
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9.0.6
run_install: false
- name: "Install the Node.js dependencies"
run: "pnpm install"
- name: "Prepare the contract artifacts"
run: "./shell/prepare-artifacts.sh"
- name: "Store the contract artifacts in CI"
uses: "actions/upload-artifact@v4"
with:
name: "contract-artifacts"
path: "artifacts"
- name: "Push Artifacts to repo"
uses: devops-infra/action-commit-push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_prefix: "[AUTO-COMMIT] contract artifacts"
- name: "Add summary"
run: |
echo "## Build result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
echo "## Artifact Link" >> $GITHUB_STEP_SUMMARY
echo "Download artifacts: ${{ steps.upload-artifact.outputs.artifact-url }}" >> $GITHUB_STEP_SUMMARY