From 347034c5597568818050fb43a4a9a55aa1c33b8d Mon Sep 17 00:00:00 2001 From: fboucquez Date: Fri, 14 Jan 2022 11:47:34 -0300 Subject: [PATCH] Split alpha workflow github actions --- .github/workflows/alpha.yml | 43 ++++++++++++++++++++++++++ .github/workflows/build.yml | 61 ------------------------------------- CHANGELOG.md | 3 +- 3 files changed, 45 insertions(+), 62 deletions(-) create mode 100644 .github/workflows/alpha.yml diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml new file mode 100644 index 000000000..91791d51e --- /dev/null +++ b/.github/workflows/alpha.yml @@ -0,0 +1,43 @@ +name: Alpha +on: + workflow_run: + workflows: [build] + branches: [dev] + types: [completed] +jobs: + doc: + name: Github Pages Deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 12.x + registry-url: https://registry.npmjs.org + - run: npm ci + - run: npm run doc + - name: Deploy Docs + uses: JamesIves/github-pages-deploy-action@v4.2.2 + with: + branch: gh-pages + folder: ts-docs + alpha: + name: Alpha NPM Deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 12.x + registry-url: https://registry.npmjs.org + - run: npm ci + - run: npm pack + - id: version + run: echo "version=$(npm run version --silent)" >> $GITHUB_ENV + - id: newVersion + run: echo "newVersion=${{ env.version }}-alpha-${GITHUB_SHA::7}" >> $GITHUB_ENV + - run: echo "Deploying version ${{ env.newVersion }}" + - run: npm version "${{ env.newVersion }}" --commit-hooks false --git-tag-version false + - run: npm publish --tag alpha + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e37a20c7..3dd6783b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,64 +32,3 @@ jobs: registry-url: https://registry.npmjs.org - run: npm ci - run: npm run lint - doc: - name: Github Pages Deploy - runs-on: ubuntu-latest - if: contains(github.base_ref, 'dev') - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 12.x - registry-url: https://registry.npmjs.org - - run: npm ci - - run: npm run doc - - name: Deploy Docs - uses: JamesIves/github-pages-deploy-action@v4.2.2 - with: - branch: gh-pages - folder: ts-docs - alpha: - needs: build - name: Alpha NPM Deploy - runs-on: ubuntu-latest - if: contains(github.base_ref, 'dev') - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 12.x - registry-url: https://registry.npmjs.org - - run: npm ci - - run: npm pack - - id: version - run: echo "version=$(npm run version --silent)" >> $GITHUB_ENV - - id: newVersion - run: echo "newVersion=${{ env.version }}-alpha-${GITHUB_SHA::7}" >> $GITHUB_ENV - - run: echo "Deploying version ${{ env.newVersion }}" - - run: npm version "${{ env.newVersion }}" --commit-hooks false --git-tag-version false - - run: npm publish --tag alpha - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} -# steps: -# - uses: actions/checkout@v2 -# - run: sudo rm /usr/local/bin/docker-compose -# - run: curl -L https://github.com/docker/compose/releases/download/${env.DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose -# - run: chmod +x docker-compose -# - sudo mv docker-compose /usr/local/bin -# - name: Build symbol.yml -# run: python3 -m catparser --schema symbol/all.cats --include symbol --output dist/symbol.yml -# - name: Build nem.yml -# run: python3 -m catparser --schema nem/all.cats --include nem --output dist/nem.yml -# - run: ls -la dist -# - uses: 'marvinpinto/action-automatic-releases@latest' -# name: Publish Pre Release -# if: github.ref == 'refs/heads/main' -# with: -# repo_token: '${{ secrets.GITHUB_TOKEN }}' -# automatic_release_tag: 'alpha' -# prerelease: true -# title: 'Alpha Build' -# files: | -# dist/symbol.yml -# dist/nem.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d4524d4e..3d747850f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -## [1.1.2] - NEXT +## [1.1.2] - Jan-14-2022 **Milestone**: Mainnet(1.0.3.1) @@ -19,6 +19,7 @@ The changelog format is based on [Keep a Changelog](https://keepachangelog.com/e - Assemblies are shared between all the presets. - Allowing user provided `--preset` and `--assembly` yml files. - Removed wallet from `demo` preset. +- CI migrated from Travis to GitHub Actions. ## [1.1.1] - Nov-16-2021