Skip to content

Commit

Permalink
fix: remove unnecessary thinkgs and rename the workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
  • Loading branch information
flacatus committed Dec 14, 2020
1 parent d7d77aa commit 870a86e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This Workflow performs a full release of chectl
name: Release chectl
name: Release
on:
workflow_dispatch:
inputs:
Expand All @@ -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
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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')"
Expand All @@ -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"
Expand All @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 870a86e

Please sign in to comment.