Skip to content

Commit

Permalink
Another try
Browse files Browse the repository at this point in the history
  • Loading branch information
wobba committed Aug 30, 2024
1 parent 0073253 commit a5378dc
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ jobs:
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]

- name: Set outputs
id: setoutputs
run: |
echo "majorMinorPatch=$GITVERSION_MAJORMINORPATCH" >> $GITHUB_OUTPUT
echo "semver=$GITVERSION_SEMVER" >> $GITHUB_OUTPUT

- name: Build SPFx
run: |
Expand All @@ -72,14 +66,14 @@ jobs:
path: ${{ github.workspace }}/**/*.sppkg
retention-days: 1
overwrite: true
compress: false

release:
runs-on: ubuntu-latest
environment: production
if: ${{ github.ref_name == 'main' || startsWith(github.ref_name, 'release') || github.event.inputs.create_release }}
needs: build
steps:

if: ${{ github.ref_name == 'main' || startsWith(github.ref_name, 'release') || github.event.inputs.create_release }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand All @@ -89,15 +83,15 @@ jobs:
- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
name: PnP Modern Search - ${{ needs.build.steps.gitversion.outputs.semver }}
name: PnP Modern Search - ${{ needs.build.outputs.semver }}
artifacts: ${{ github.workspace }}/**/*.sppkg
bodyFile: ".github/workflows/release-template.md"
draft: true
generateReleaseNotes: true
allowUpdates: true
replacesArtifacts: true
prerelease: ${{ startsWith(github.ref_name, 'release') }}
tag: ${{ needs.build.steps.gitversion.outputs.majorMinorPatch }}
tag: ${{ needs.build.outputs.majorMinorPatch }}
commit: ${{ github.ref_name }}

- name: Setup python
Expand Down

0 comments on commit a5378dc

Please sign in to comment.