-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 1019 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Publish
on:
release:
types: [published]
jobs:
build:
uses: ./.github/workflows/build-artifacts.yml
publish:
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{needs.build.outputs.artifact}}
- name: Upload artifact
uses: softprops/action-gh-release@v2
with:
files: ${{needs.build.outputs.artifact}}.zip
- name: Upload artifact to artifact repository
run: curl --fail -u "${{ secrets.PRIVATE_NEXUS_USERNAME }}":"${{ secrets.PRIVATE_NEXUS_PASSWORD }}" --upload-file ${{needs.build.outputs.artifact}}.zip https:/artifacts.tiobe.com/repository/plugins/tics-intellij-plugin/${{needs.build.outputs.version}}/${{needs.build.outputs.artifact}}.zip
- name: Trigger Jenkins job
run: curl -u ${{secrets.JENKINS_API_TOKEN}} ${{secrets.JENKINS_URL}}/job/Intellij-Publish/build?token=intellij-publish