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

upgrade travis and appveyor to github action #3416

Merged
merged 2 commits into from
Jan 31, 2022
Merged

upgrade travis and appveyor to github action #3416

merged 2 commits into from
Jan 31, 2022

Conversation

xiangxn
Copy link
Contributor

@xiangxn xiangxn commented Dec 17, 2021

Update current travis and appveyor to GitHub actions

About the modification of #3414 and #3302 This action will automatically generate the following effects when triggered:

image

Copy link
Member

@abitmore abitmore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.
How about other assets (e.g. the HTML zip)?

.github/workflows/build-release-binaries.yml Outdated Show resolved Hide resolved
body: ${{ steps.create_body.outputs.body }}
draft: true
- name: Upload dmg
uses: actions/upload-release-asset@v1.0.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action (https://github.com/actions/upload-release-asset) is unmaintained too.

.github/workflows/build-release-binaries.yml Outdated Show resolved Hide resolved
@abitmore
Copy link
Member

Note: to use this workflow, we need to label pull requests with "feature", "bug" or "bugfix" so that they'll be included in the release notes.

uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: echo "PackageVersion=$(cat package.json | sed 's/,/\n/g' | grep '\"version\":' | sed 's/:/\n/g' | sed '1d' | sed 's/ //g' | sed 's/\"//g' | sed 's/}//g')" >> $GITHUB_ENV
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, these long lines look ugly when viewing Github.com in a web browser.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be optimized here, such as using jq, but I don't want to use too many external programs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commands can be simply wrapped with the \ sign and etc. Actually, since you have ( in the command, it supports multiple lines by itself already. E.G.

- run: |
    echo "PackageVersion=$(cat package.json | sed 's/,/\n/g' | grep '\"version\":' |
        sed 's/:/\n/g' | sed '1d' | sed 's/ //g' | sed 's/\"//g' | sed 's/}//g')" \
        >> $GITHUB_ENV

Just my 2 cents.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this is not the only long line in the pull request. It's best to wrap them all.

@xiangxn
Copy link
Contributor Author

xiangxn commented Dec 18, 2021

We need to generate and upload binary files, and include the hash of the file. The new maintenance version is not used because GITHUB_TOKEN is used in it, for the best to use only the github/actions version

@xiangxn
Copy link
Contributor Author

xiangxn commented Dec 18, 2021

Note: to use this workflow, we need to label pull requests with "feature", "bug" or "bugfix" so that they'll be included in the release notes.

These marks are the most basic, we can add new ones, and we can add them according to the manager's ideas.

@abitmore
Copy link
Member

Note: this PR has lower priority than #3413. Please finish that one first. Try not to be distracted.

@xiangxn
Copy link
Contributor Author

xiangxn commented Dec 18, 2021

@abitmore @sschiessl-bcp
I have made adjustments to the code.

@abitmore
Copy link
Member

Thanks.

@sschiessl-bcp
Copy link
Contributor

will test with next release

@sschiessl-bcp sschiessl-bcp merged commit 1e1f083 into bitshares:develop Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
5.0.220214 Release
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

3 participants