Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating workflow on site generation #251

Merged
merged 2 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 1 addition & 30 deletions .github/workflows/web-ui-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,33 +121,4 @@ jobs:
with:
find: ${{ steps.previous_shasum.outputs.SHASUM }}
replace: ${{ needs.build_and_release.outputs.new_sha }}
include: "prysm_repo/WORKSPACE"

- name: Setup bazel
uses: jwlawson/actions-setup-bazel@v1
with:
bazel-version: '5.4.0'

- name: Run Bazel
run: cd prysm_repo && bazel build //validator/web:site_data

- name: Copy build site data
run: cd prysm_repo && cp bazel-bin/validator/web/site_data.go ./validator/web/site_data.go

- name: Run go FMT
run: cd prysm_repo && gofmt -w -s ./validator/web/site_data.go

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Web-ui-version-${{ steps.current_version.outputs.TAG }}-commit
title: 'Prysm Web UI Release ${{ steps.current_version.outputs.TAG }}'
body: >
This PR is auto-generated by
[create-pull-request](https://github.com/peter-evans/create-pull-request).
labels: automated pr
path: prysm_repo
#reviewers: rauljordan, james-prysm
token: ${{ secrets.PAToken }}
branch: prysm-web-ui-${{ steps.current_version.outputs.TAG }}
base: develop
include: "prysm_repo/WORKSPACE"
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,9 @@ Then, do

You should see protos being regenerated under `./src/app/proto`, which will be used as the types in our frontend application.

## Steps to create release

1. Once all commits are added to master, update the `CHANGELOG.md` file for all the associated changes.
2. Create a version tag against master and push the new version tag. This will trigger the git action workflow.
3. Follow README.md instructions on the [prysm repo](https://github.com/prysmaticlabs/prysm/tree/develop/validator/web) to update the validator client with the new UI.

Loading