diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index f9ae2e5..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,35 +0,0 @@ -name-template: 'Release Pulumi AEM $RESOLVED_VERSION' -tag-template: 'v$RESOLVED_VERSION' -template: | - $CHANGES - - All contributors: $CONTRIBUTORS - -categories: - - title: '🚀 Features' - labels: - - 'feature' - - 'enhancement' - - title: '🐛 Bug Fixes' - labels: - - 'fix' - - 'bugfix' - - 'bug' - - title: '🧰 Maintenance' - labels: - - 'maintenance' - - 'documentation' - - 'other' -version-resolver: - major: - labels: - - 'major' - minor: - labels: - - 'minor' - patch: - labels: - - 'patch' - default: patch -exclude-labels: - - 'skip-changelog' \ No newline at end of file diff --git a/.github/workflows/drafter.yml b/.github/workflows/drafter.yml deleted file mode 100644 index 269bd44..0000000 --- a/.github/workflows/drafter.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Drafter -on: - push: - branches: - - main -jobs: - update_release_draft: - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b2c2842..d609c8f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,8 +1,9 @@ name: Release on: - workflow_dispatch: - release: - types: [published] + push: + tags: + - v*.*.* + - '!v*.*.*-**' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -44,17 +45,15 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.9" -# - name: Run GoReleaser -# uses: goreleaser/goreleaser-action@v5 -# with: -# args: -p 3 release --clean -# version: latest + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + args: -p 3 release --clean + version: latest - name: Checkout Repo uses: actions/checkout@v4 - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - - name: Generate SDK - run: make build - name: Create new tag id: create_tag uses: mathieudutour/github-tag-action@v6.2 @@ -63,6 +62,8 @@ jobs: custom_tag: sdk/${{ github.event.release.tag_name }} tag_prefix: "" release_branches: main + - name: Generate SDK + run: make build - name: Compress SDK folder run: | for language in nodejs python dotnet go; do