Skip to content

upgrade travis and appveyor to github action#3416

Merged
sschiessl-bcp merged 2 commits intobitshares:developfrom
xiangxn:upgrade-github-action
Jan 31, 2022
Merged

upgrade travis and appveyor to github action#3416
sschiessl-bcp merged 2 commits intobitshares:developfrom
xiangxn:upgrade-github-action

Conversation

@xiangxn
Copy link
Copy Markdown
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
Copy Markdown
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)?

body: ${{ steps.create_body.outputs.body }}
draft: true
- name: Upload dmg
uses: actions/[email protected]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@abitmore
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

@xiangxn
Copy link
Copy Markdown
Contributor Author

xiangxn commented Dec 18, 2021

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

@abitmore
Copy link
Copy Markdown
Member

Thanks.

@sschiessl-bcp
Copy link
Copy Markdown
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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants