From 870a86eed0d44207fabe0ab4e85ec1d9545a7165 Mon Sep 17 00:00:00 2001 From: Flavius Lacatusu Date: Mon, 14 Dec 2020 22:21:02 +0100 Subject: [PATCH] fix: remove unnecessary thinkgs and rename the workflows Signed-off-by: Flavius Lacatusu --- .github/workflows/draft-release.yml | 4 ++-- .github/workflows/release.yml | 20 ++++++++++---------- .github/workflows/unit-tests.yml | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 736fc088e..cc0a5ecec 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -1,5 +1,5 @@ # This Workflow performs a full release of chectl -name: Release chectl +name: Release on: workflow_dispatch: inputs: @@ -9,7 +9,7 @@ on: default: '7.y.z' jobs: build: - name: Create Release + name: Create stable release Pull Request runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5607fbba..9e1e091da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ # # Contributors: # Red Hat, Inc. - initial API and implementation -name: Build and Deploy release artifacts ⌛ +name: Create release and push to github pages on: # Trigger the workflow on push only for the master branch push: @@ -19,14 +19,14 @@ jobs: build-and-deploy: runs-on: ubuntu-20.04 steps: - - name: Checkout 🛎️ + - name: Checkout uses: actions/checkout@v2.3.1 with: persist-credentials: false - uses: actions/setup-node@v1 with: node-version: '12' - - name: Generate tag utilities 📜 + - name: Generate tag utilities id: TAG_UTIL run: | echo "::set-output name=gh_tag::$(date +'%Y%m%d%H%M%S')" @@ -43,11 +43,11 @@ jobs: echo "::set-output name=chectl_version::0.0.$CURRENT_DAY-next" echo "::set-output name=gh_release_name::0.0.$CURRENT_DAY-next.$SHORT_SHA1" fi - - name: Install chectl dependencies 🔧 + - name: Install chectl dependencies run: yarn - - name: Run unit tests 🩺 + - name: Run unit tests run: yarn test - - name: Pack chectl 🎒 + - name: Pack chectl run: | git config --local user.name "Flavius Lacatusu" git config --local user.email "flacatus@redhat.com" @@ -62,14 +62,14 @@ jobs: rm -rf gh-pages/.git echo $(date +%s) > gh-pages/update env - - name: Deploy to github pages 📈 + - name: Deploy to github pages uses: JamesIves/github-pages-deploy-action@3.7.1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages # The branch the action should deploy to. - FOLDER: gh-pages # The folder the action should deploy. + BRANCH: gh-pages + FOLDER: gh-pages CLEAN: true # Automatically remove deleted files from the deploy branch - - name: Create Release and push artifacts 🚀 + - name: Create Release and push artifacts uses: softprops/action-gh-release@v1 with: name: ${{ steps.TAG_UTIL.outputs.gh_release_name }} diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 83f0a4cc6..b6bab6c70 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -15,14 +15,14 @@ jobs: runs-on: ubuntu-20.04 name: Unit Tests steps: - - name: Checkout 🛎️ + - name: Checkout uses: actions/checkout@v2.3.1 with: persist-credentials: false - uses: actions/setup-node@v1 with: node-version: '12' - - name: Install chectl dependencies 🔧 + - name: Install chectl dependencies run: yarn - - name: Run unit tests 🩺 + - name: Run unit tests run: yarn test