Skip to content

Commit

Permalink
release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonasdan committed Feb 2, 2024
1 parent 0953561 commit 5da648d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
uses: actions/checkout@v3
- name: Setup
uses: ./.github/workflows/base
- name: Build
uses: ./.github/workflows/build
- name: Release
uses: ./.github/workflows/release
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
VERSION: ${{ github.event.release.tag_name }}
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release
description: Release

inputs:
GITHUB_TOKEN:
description: 'A Github PAT'
required: true
SONAR_TOKEN:
description: 'A Sonar token'
required: true
VERSION:
description: 'Version number'
required: true

runs:
using: composite
steps:
- name: Create new release
shell: bash
run: npm run release:version ${{ inputs.VERSION }}
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ inputs.SONAR_TOKEN }}

0 comments on commit 5da648d

Please sign in to comment.