|
9 | 9 | type: string |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - changelog: |
13 | | - uses: CodingWithCalvin/.github/.github/workflows/generate-changelog.yml@main |
14 | | - secrets: inherit |
15 | | - |
16 | | - release: |
17 | | - needs: changelog |
18 | | - runs-on: ubuntu-latest |
19 | | - outputs: |
20 | | - version: ${{ inputs.version }} |
21 | | - |
22 | | - permissions: |
23 | | - contents: write |
24 | | - |
25 | | - steps: |
26 | | - - name: Checkout |
27 | | - uses: actions/checkout@v4 |
28 | | - |
29 | | - - name: Setup Node.js |
30 | | - uses: actions/setup-node@v4 |
31 | | - with: |
32 | | - node-version-file: .node-version |
33 | | - cache: npm |
34 | | - |
35 | | - - name: Install Dependencies |
36 | | - run: npm ci |
37 | | - |
38 | | - - name: Rebuild dist |
39 | | - run: npm run bundle |
40 | | - |
41 | | - - name: Commit dist changes |
42 | | - run: | |
43 | | - git config user.name "github-actions[bot]" |
44 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
45 | | - git add dist/ |
46 | | - git diff --staged --quiet || git commit -m "chore: rebuild dist for v${{ inputs.version }}" |
47 | | - git push |
48 | | -
|
49 | | - - name: Create and push tag |
50 | | - run: | |
51 | | - git tag v${{ inputs.version }} |
52 | | - git push origin v${{ inputs.version }} |
53 | | -
|
54 | | - - name: Create GitHub Release |
55 | | - uses: softprops/action-gh-release@v1 |
56 | | - with: |
57 | | - tag_name: v${{ inputs.version }} |
58 | | - name: v${{ inputs.version }} |
59 | | - body: ${{ needs.changelog.outputs.changelog }} |
60 | | - |
61 | | - notify-bluesky: |
62 | | - needs: release |
63 | | - uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main |
64 | | - with: |
65 | | - post_text: | |
66 | | - 🚀 Visual Studio VSIX Versioner v${{ needs.release.outputs.version }} has been released! |
67 | | -
|
68 | | - Version your Visual Studio extensions with ease! |
69 | | -
|
70 | | - [📋 Release Notes](https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }}) |
71 | | - [📦 GitHub Marketplace](https://github.com/marketplace/actions/visual-studio-vsix-versioner) |
72 | | -
|
73 | | - #github #githubactions #devops #automation |
74 | | - embed_url: https://github.com/marketplace/actions/visual-studio-vsix-versioner |
75 | | - embed_title: Visual Studio VSIX Versioner |
76 | | - embed_description: Version your Visual Studio extensions with ease! |
77 | | - secrets: |
78 | | - BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }} |
79 | | - BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }} |
80 | | - |
81 | | - notify-linkedin: |
82 | | - needs: release |
83 | | - uses: CodingWithCalvin/.github/.github/workflows/linkedin-post.yml@main |
| 12 | + publish: |
| 13 | + uses: CodingWithCalvin/.github/.github/workflows/gha-publish.yml@main |
84 | 14 | with: |
85 | | - post_text: | |
86 | | - 🚀 Visual Studio VSIX Versioner v${{ needs.release.outputs.version }} has been released! |
87 | | -
|
88 | | - Version your Visual Studio extensions with ease! |
89 | | -
|
90 | | - 📋 Release Notes: https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }} |
91 | | - 📦 GitHub Marketplace: https://github.com/marketplace/actions/visual-studio-vsix-versioner |
92 | | -
|
93 | | - #github #githubactions #devops #automation |
94 | | - article_url: https://github.com/marketplace/actions/visual-studio-vsix-versioner |
95 | | - article_title: Visual Studio VSIX Versioner |
96 | | - article_description: Version your Visual Studio extensions with ease! |
97 | | - secrets: |
98 | | - LINKEDIN_ACCESS_TOKEN: ${{ secrets.LINKEDIN_ACCESS_TOKEN }} |
99 | | - LINKEDIN_CLIENT_ID: ${{ secrets.LINKEDIN_CLIENT_ID }} |
| 15 | + version: ${{ inputs.version }} |
| 16 | + action-name: 'Visual Studio VSIX Versioner' |
| 17 | + action-slug: 'visual-studio-vsix-versioner' |
| 18 | + action-description: 'Version your Visual Studio extensions with ease!' |
| 19 | + secrets: inherit |
0 commit comments