Skip to content

Commit dce1195

Browse files
committed
chore(ci): try not use actions
1 parent 96bcc94 commit dce1195

File tree

2 files changed

+44
-31
lines changed

2 files changed

+44
-31
lines changed

.github/workflows/fixtures.yaml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Package Fixtures
33
on:
44
push:
55
tags:
6-
- "v[0-9]+.[0-9]+.[0-9]+*"
6+
- "tests-v[0-9]+.[0-9]+.[0-9]+*"
77
workflow_dispatch:
88

99
jobs:
@@ -27,6 +27,7 @@ jobs:
2727
echo "$feature"
2828
done | jq -R . | jq -cs . > features.json
2929
echo "features=$(cat features.json)" >> "$GITHUB_OUTPUT"
30+
3031
build:
3132
needs: features
3233
runs-on: [self-hosted-ghr, size-gigachungus-x64]
@@ -61,21 +62,28 @@ jobs:
6162
release_name: ${{ matrix.name }}
6263
uv_version: ${{ vars.UV_VERSION }}
6364
python_version: ${{ vars.DEFAULT_PYTHON_VERSION }}
65+
6466
release:
6567
runs-on: ubuntu-latest
6668
needs: build
67-
if: startsWith(github.ref, 'refs/tags/')
69+
if: startsWith(github.ref, 'refs/tags/tests-')
6870
steps:
69-
- name: Download artifacts
70-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
71-
with:
72-
path: .
73-
- name: Draft Release
74-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda
75-
with:
76-
repository: ethereum/execution-spec-tests
77-
token: ${{ secrets.EEST_RELEASE_TOKEN }}
78-
files: "./**"
79-
draft: true
80-
generate_release_notes: true
81-
fail_on_unmatched_files: true
71+
- name: Download all artifacts
72+
run: |
73+
gh run download ${{ github.run_id }} --dir ./artifacts
74+
env:
75+
GH_TOKEN: ${{ github.token }}
76+
77+
- name: Create Release
78+
run: |
79+
# Strip "tests-" prefix from tag for EEST
80+
TAG_NAME="${{ github.ref_name }}"
81+
RELEASE_TAG="${TAG_NAME#tests-}"
82+
83+
gh release create "$RELEASE_TAG" \
84+
--repo ethereum/execution-spec-tests \
85+
--draft \
86+
--generate-notes \
87+
./artifacts/**/*
88+
env:
89+
GH_TOKEN: ${{ secrets.EEST_RELEASE_TOKEN }}

.github/workflows/fixtures_feature.yaml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Package Fixtures for a Feature
33
on:
44
push:
55
tags:
6-
- "*@v*"
6+
- "tests-*@v*"
77
workflow_dispatch:
88

99
jobs:
@@ -65,20 +65,25 @@ jobs:
6565
release:
6666
runs-on: ubuntu-latest
6767
needs: build
68-
if: startsWith(github.ref, 'refs/tags/')
68+
if: startsWith(github.ref, 'refs/tags/tests-')
6969
steps:
70-
- name: Download artifacts
71-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
72-
with:
73-
path: .
74-
70+
- name: Download all artifacts
71+
run: |
72+
gh run download ${{ github.run_id }} --dir ./artifacts
73+
env:
74+
GH_TOKEN: ${{ github.token }}
75+
7576
- name: Draft Pre-release to EEST Repository
76-
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda
77-
with:
78-
repository: ethereum/execution-spec-tests
79-
token: ${{ secrets.EEST_RELEASE_TOKEN }}
80-
files: "./**"
81-
draft: true
82-
prerelease: true
83-
generate_release_notes: true
84-
fail_on_unmatched_files: true
77+
run: |
78+
# Strip "tests-" prefix from tag for EEST
79+
TAG_NAME="${{ github.ref_name }}"
80+
RELEASE_TAG="${TAG_NAME#tests-}"
81+
82+
gh release create "$RELEASE_TAG" \
83+
--repo ethereum/execution-spec-tests \
84+
--draft \
85+
--prerelease \
86+
--generate-notes \
87+
./artifacts/**/*
88+
env:
89+
GH_TOKEN: ${{ secrets.EEST_RELEASE_TOKEN }}

0 commit comments

Comments
 (0)