Skip to content

Commit

Permalink
fix(*): update tag in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed May 27, 2024
1 parent e785257 commit c564b8e
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,26 @@ jobs:
- name: lint
continue-on-error: true
run: npm run lint
build:
needs: [static-scan, dependency-scan, lint]
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Dependencies
run: npm install --legacy-peer-deps
- name: Deploy to Heroku
uses: akhileshns/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: hoseacodes-dev
heroku_email: "[email protected]"
# build:
# needs: [static-scan, dependency-scan, lint]
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2
# - name: Set up Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '20'
# - name: Install Dependencies
# run: npm install --legacy-peer-deps
# - name: Deploy to Heroku
# uses: akhileshns/[email protected]
# with:
# heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
# heroku_app_name: hoseacodes-dev
# heroku_email: "[email protected]"
release:
needs: [build]
# needs: [build]
name: Release pushed tag
runs-on: ubuntu-22.04
steps:
Expand All @@ -95,17 +95,23 @@ jobs:
uses: 'WyriHaximus/github-action-next-semvers@v1'
with:
version: ${{ steps.previoustag.outputs.tag }}
- name: Create Tag
uses: rickstaa/[email protected]
with:
tag: ${{ github.ref_name }} ${{ steps.semver.outputs.patch }}
- name: Create release
id: create_release_id
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }} ${{ steps.semver.outputs.patch }}
run: |
git tag -a $tag -m "Release $tag"
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes \
--draft
with:
tag_name: ${{ steps.semver.outputs.patch }}
release_name: Release ${{ steps.semver.outputs.patch }}


0 comments on commit c564b8e

Please sign in to comment.