|
6 | 6 |
|
7 | 7 | jobs: |
8 | 8 | publish-to-gallery: |
9 | | - runs-on: windows-2022 |
| 9 | + runs-on: windows-latest |
10 | 10 | steps: |
11 | | - - uses: actions/checkout@v4 |
| 11 | + - uses: actions/checkout@v5 |
12 | 12 | - name: Set PSRepository to Trusted for PowerShell Gallery |
13 | 13 | shell: pwsh |
14 | 14 | run: | |
@@ -41,29 +41,29 @@ jobs: |
41 | 41 | shell: pwsh |
42 | 42 | run: | |
43 | 43 | Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose |
44 | | - # tweet: |
45 | | - # needs: publish-to-gallery |
46 | | - # runs-on: ubuntu-latest |
47 | | - # steps: |
48 | | - # - uses: Eomm/why-don-t-you-tweet@v2 |
49 | | - # # We don't want to tweet if the repository is not a public one |
50 | | - # if: ${{ !github.event.repository.private }} |
51 | | - # with: |
52 | | - # # GitHub event payload |
53 | | - # # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release |
54 | | - # tweet-message: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Microsoft #ActiveDirectory #AsBuiltReport #PowerShell #MicrosoftMVP #MVPBuzz #cybersecurity #infosec" |
55 | | - # env: |
56 | | - # TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }} |
57 | | - # TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} |
58 | | - # TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} |
59 | | - # TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} |
60 | | - # bsky-post: |
61 | | - # needs: publish-to-gallery |
62 | | - # runs-on: ubuntu-latest |
63 | | - # steps: |
64 | | - # - uses: zentered/bluesky-post-action@v0.2.0 |
65 | | - # with: |
66 | | - # post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Microsoft #ActiveDirectory #AsBuiltReport #PowerShell #MicrosoftMVP #MVPBuzz #cybersecurity #infosec" |
67 | | - # env: |
68 | | - # BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }} |
69 | | - # BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }} |
| 44 | + tweet: |
| 45 | + needs: publish-to-gallery |
| 46 | + runs-on: ubuntu-latest |
| 47 | + steps: |
| 48 | + - uses: Eomm/why-don-t-you-tweet@v2 |
| 49 | + # We don't want to tweet if the repository is not a public one |
| 50 | + if: ${{ !github.event.repository.private }} |
| 51 | + with: |
| 52 | + # GitHub event payload |
| 53 | + # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release |
| 54 | + tweet-message: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Microsoft #ActiveDirectory #AsBuiltReport #PowerShell #MicrosoftMVP #MVPBuzz #cybersecurity #infosec" |
| 55 | + env: |
| 56 | + TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }} |
| 57 | + TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} |
| 58 | + TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} |
| 59 | + TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} |
| 60 | + bsky-post: |
| 61 | + needs: publish-to-gallery |
| 62 | + runs-on: ubuntu-latest |
| 63 | + steps: |
| 64 | + - uses: zentered/bluesky-post-action@v0.3.0 |
| 65 | + with: |
| 66 | + post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Microsoft #ActiveDirectory #AsBuiltReport #PowerShell #MicrosoftMVP #MVPBuzz #cybersecurity #infosec" |
| 67 | + env: |
| 68 | + BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }} |
| 69 | + BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }} |
0 commit comments