diff --git a/.github/workflows/create-tag.yml b/.github/workflows/create-tag.yml deleted file mode 100644 index fd91816..0000000 --- a/.github/workflows/create-tag.yml +++ /dev/null @@ -1,53 +0,0 @@ -# https://help.github.com/en/categories/automating-your-workflow-with-github-actions - -name: "Create tag" - -on: - # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch - workflow_dispatch: - inputs: - version: - description: 'Next version' - required: true - default: 'patch' - type: choice - options: - - patch - - minor - -jobs: - create-tag: - name: "Create tag" - runs-on: "ubuntu-latest" - steps: - - name: "Checkout" - uses: actions/checkout@v5 - with: - fetch-depth: 0 - token: ${{ secrets.PHPSTAN_BOT_TOKEN }} - - - name: 'Get Previous tag' - id: previoustag - uses: "WyriHaximus/github-action-get-previous-tag@v1" - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - - - name: 'Get next versions' - id: semvers - uses: "WyriHaximus/github-action-next-semvers@v1" - with: - version: ${{ steps.previoustag.outputs.tag }} - - - name: "Create new minor tag" - uses: rickstaa/action-create-tag@v1 - if: inputs.version == 'minor' - with: - tag: ${{ steps.semvers.outputs.minor }} - message: ${{ steps.semvers.outputs.minor }} - - - name: "Create new patch tag" - uses: rickstaa/action-create-tag@v1 - if: inputs.version == 'patch' - with: - tag: ${{ steps.semvers.outputs.patch }} - message: ${{ steps.semvers.outputs.patch }} diff --git a/.github/workflows/release-toot.yml b/.github/workflows/release-toot.yml deleted file mode 100644 index 1ba4fd7..0000000 --- a/.github/workflows/release-toot.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Toot release - -# More triggers -# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release -on: - release: - types: [published] - -jobs: - toot: - runs-on: ubuntu-latest - steps: - - uses: cbrgm/mastodon-github-action@v2 - if: ${{ !github.event.repository.private }} - with: - # GitHub event payload - # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release - message: "New release: ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} ${{ github.event.release.html_url }} #phpstan" - env: - MASTODON_URL: https://phpc.social - MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }} diff --git a/.github/workflows/release-tweet.yml b/.github/workflows/release-tweet.yml deleted file mode 100644 index d81f34c..0000000 --- a/.github/workflows/release-tweet.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Tweet release - -# More triggers -# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release -on: - release: - types: [published] - -jobs: - tweet: - runs-on: ubuntu-latest - steps: - - uses: Eomm/why-don-t-you-tweet@v2 - if: ${{ !github.event.repository.private }} - with: - # GitHub event payload - # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release - tweet-message: "New release: ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} ${{ github.event.release.html_url }} #phpstan" - env: - # Get your tokens from https://developer.twitter.com/apps - TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }} - TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} - TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} - TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index ed7e51a..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,33 +0,0 @@ -# https://help.github.com/en/categories/automating-your-workflow-with-github-actions - -name: "Create release" - -on: - push: - tags: - - '*' - -jobs: - deploy: - name: "Deploy" - runs-on: "ubuntu-latest" - - steps: - - name: "Checkout" - uses: actions/checkout@v5 - - - name: Generate changelog - id: changelog - uses: metcalfc/changelog-generator@v4.6.2 - with: - myToken: ${{ secrets.PHPSTAN_BOT_TOKEN }} - - - name: "Create release" - id: create-release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.PHPSTAN_BOT_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - body: ${{ steps.changelog.outputs.changelog }}