Skip to content

Commit

Permalink
fix: release.yml [ROAD-1163] (#63)
Browse files Browse the repository at this point in the history
* fix: adds changelog
  • Loading branch information
j-luong authored Sep 30, 2022
1 parent b89b8f8 commit f7198d8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@ jobs:
fetch-depth: 0

- name: Set up JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v1
with:
java-version: '8'
cache: maven

- name: Build with Maven
run: |
./mvnw clean verify --show-version --batch-mode --errors -Drevision=$GITHUB_REF_NAME \
sha256sum ./distribution/target/teamcity-snyk-security-plugin.zip > ./distribution/target/teamcity-snyk-security-plugin.zip.sha256
java-version: '1.8'

- name: Set up GitHub actions user
uses: fregante/setup-git-user@v1
Expand All @@ -36,6 +30,13 @@ jobs:
git push --tags
echo "::set-output name=tagName::$TAG_NAME"
- name: Build with Maven
env:
TAG_NAME: ${{ steps.createTag.outputs.tagName }}
run: |
./mvnw clean verify --show-version --batch-mode --errors -Drevision=${TAG_NAME}
sha256sum ./distribution/target/teamcity-snyk-security-plugin.zip > ./distribution/target/teamcity-snyk-security-plugin.zip.sha256
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
Expand Down Expand Up @@ -70,15 +71,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./distribution/target/teamcity-snyk-security-plugin.zip.sha256
asset_name: "teamcity-snyk-security-plugin.zip.sha256"
asset_content_type: application/text

- name: Set publish token env var
run: echo "JETBRAINS_PUBLISH_TOKEN=${{ secrets.JETBRAINS_PUBLISH_TOKEN }}" >> $GITHUB_ENV

- name: Deploy plugin to JetBrains portal
env:
JETBRAINS_PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }}
run: |
echo "Deploying the plugin to JetBrains portal..."
curl -i --header "Authorization: Bearer $JETBRAINS_PUBLISH_TOKEN" -F pluginId=12227 -F file=./target/teamcity-snyk-security-plugin.zip https://plugins.jetbrains.com/plugin/uploadPlugin
curl -i --header "Authorization: Bearer ${JETBRAINS_PUBLISH_TOKEN}" -F pluginId=12227 -F file=./distribution/target/teamcity-snyk-security-plugin.zip https://plugins.jetbrains.com/plugin/uploadPlugin
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Snyk Changelog

## [1.0.0] - v20220930.131821
### Changes
- chore: update snyk cli to v1.1017.0 [ROAD-1163] (#62)
- fix: upgrade com.fasterxml.jackson.core:jackson-databind from 2.13.3 to 2.13.4 (#61)
- chore: update CONTRIBUTING.md
- chore: update Contributions section in README
- chore: move CONTRIBUTING.md to root
- Merge pull request #60 from snyk/snyk-upgrade-9de3f2738ba2ccef258a146d2f6a5c4c
- fix: upgrade com.fasterxml.jackson.core:jackson-databind from 2.13.2.2 to 2.13.3
- Merge pull request #59 from snyk/snyk-upgrade-4a132885a3632067b55c3a305e3d27a1
- fix: upgrade com.fasterxml.jackson.core:jackson-databind from 2.13.2.1 to 2.13.2.2
- Merge pull request #58 from snyk/snyk-fix-55a615e07c3890c86298bc82ddccb8c2
- fix: pom.xml to reduce vulnerabilities

0 comments on commit f7198d8

Please sign in to comment.