mirror of
https://github.com/fluencelabs/aqua-ipfs
synced 2025-03-15 21:20:49 +00:00
CI: update version in node-distro (#24)
This commit is contained in:
parent
aef1262cc5
commit
2394e57ca0
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@ -89,7 +89,7 @@ jobs:
|
|||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Build Changelog
|
- name: Build Changelog
|
||||||
id: github_release
|
id: changelog
|
||||||
uses: mikepenz/release-changelog-builder-action@v1
|
uses: mikepenz/release-changelog-builder-action@v1
|
||||||
with:
|
with:
|
||||||
configuration: ".github/workflows/changelog_config.json"
|
configuration: ".github/workflows/changelog_config.json"
|
||||||
@ -105,21 +105,12 @@ jobs:
|
|||||||
tag_name: ${{ env.RELEASE_VERSION }}
|
tag_name: ${{ env.RELEASE_VERSION }}
|
||||||
files: |
|
files: |
|
||||||
./service/aqua-ipfs.tar.gz
|
./service/aqua-ipfs.tar.gz
|
||||||
body: ${{steps.github_release.outputs.changelog}}
|
body: ${{steps.changelog.outputs.changelog}}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
### Rebuild node-distro
|
|
||||||
- name: Trigger new node-distro container
|
|
||||||
uses: benc-uk/workflow-dispatch@v1
|
|
||||||
with:
|
|
||||||
workflow: Publish Container
|
|
||||||
repo: fluencelabs/node-distro
|
|
||||||
ref: 'main'
|
|
||||||
token: ${{ secrets.PERSONAL_TOKEN }}
|
|
||||||
|
|
||||||
### Publish Aqua API
|
### Publish Aqua API
|
||||||
- name: Publish Aqua API to NPM
|
- name: Publish Aqua API to NPM
|
||||||
run: |
|
run: |
|
||||||
@ -138,7 +129,7 @@ jobs:
|
|||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
working-directory: ./aqua/target/typescript
|
working-directory: ./aqua/target/typescript
|
||||||
|
|
||||||
## Update Builtin Services repo
|
## Update node-distro repo
|
||||||
- name: Get tar.gz URL
|
- name: Get tar.gz URL
|
||||||
id: package-url
|
id: package-url
|
||||||
uses: actions/github-script@v4
|
uses: actions/github-script@v4
|
||||||
@ -168,11 +159,11 @@ jobs:
|
|||||||
echo $(sha256sum ./service/aqua-ipfs.tar.gz)
|
echo $(sha256sum ./service/aqua-ipfs.tar.gz)
|
||||||
echo "SHA256=$(sha256sum ./service/aqua-ipfs.tar.gz | awk '{ print $1 }')" >> $GITHUB_ENV
|
echo "SHA256=$(sha256sum ./service/aqua-ipfs.tar.gz | awk '{ print $1 }')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Update version in builtins repo
|
- name: Update version in node-distro repo
|
||||||
uses: benc-uk/workflow-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
workflow: update_service
|
workflow: update_service
|
||||||
repo: fluencelabs/builtin-services
|
repo: fluencelabs/node-distro
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
token: ${{ secrets.PERSONAL_TOKEN }}
|
token: ${{ secrets.PERSONAL_TOKEN }}
|
||||||
inputs: '{
|
inputs: '{
|
||||||
@ -188,4 +179,4 @@ jobs:
|
|||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
console.dir(core);
|
console.dir(core);
|
||||||
core.info("aqua-ipfs was updated to ${{ env.RELEASE_VERSION }} in Builtin Services Repo");
|
core.info("aqua-ipfs was updated to ${{ env.RELEASE_VERSION }} in node-distro repo");
|
||||||
|
8
.github/workflows/tag.yml
vendored
8
.github/workflows/tag.yml
vendored
@ -10,8 +10,16 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get branch
|
||||||
|
run: |
|
||||||
|
BRANCH=${GITHUB_REF#refs/*/}
|
||||||
|
SANITIZED=$(echo "$BRANCH" | sed -e 's/[^a-zA-Z0-9-]/-/g')
|
||||||
|
echo "BRANCH=$SANITIZED" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Bump version and push tag
|
- name: Bump version and push tag
|
||||||
id: tag_version
|
id: tag_version
|
||||||
uses: mathieudutour/github-tag-action@v5.5
|
uses: mathieudutour/github-tag-action@v5.5
|
||||||
with:
|
with:
|
||||||
|
append_to_pre_release_tag: ${{ env.BRANCH }}
|
||||||
github_token: ${{ secrets.PERSONAL_TOKEN }}
|
github_token: ${{ secrets.PERSONAL_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user