From 8ebb9ca9fbce0982e27296d5016d17d8b20962d6 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Mon, 25 Sep 2023 15:54:46 +0300 Subject: Delete workflow --- .github/workflows/release.yml | 92 ------------------------------------------- 1 file changed, 92 deletions(-) delete mode 100644 .github/workflows/release.yml (limited to '.github/workflows/release.yml') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 88c2b65..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,92 +0,0 @@ -name: Release -on: - push: - branches: - - master - workflow_dispatch: - branches: - - master -jobs: - run-tests: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: "Install PHP dependencies" - uses: php-actions/composer@v6 - - - name: "Run tests" - run: ./vendor/pestphp/pest/bin/pest - - build-zip: - runs-on: ubuntu-latest - needs: [run-tests] - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - uses: paulhatch/semantic-version@v4.0.2 - id: semver - with: - # The prefix to use to identify tags - tag_prefix: "v" - # A string which, if present in a git commit, indicates that a change represents a - # major (breaking) change, supports regular expressions wrapped with '/' - major_pattern: "(MAJOR)" - # Same as above except indicating a minor change, supports regular expressions wrapped with '/' - minor_pattern: "(MINOR)" - # A string to determine the format of the version output - format: "${major}.${minor}.${patch}" - # If this is set to true, *every* commit will be treated as a new version. - bump_each_commit: true - - - run: git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline > new-in-this-release.log - - - name: Read git log - id: package - uses: juliangruber/read-file-action@v1 - with: - path: ./new-in-this-release.log - - - name: "Create Release" - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - with: - tag_name: ${{steps.semver.outputs.version_tag}} - release_name: ${{steps.semver.outputs.version_tag}} - body: ${{ steps.package.outputs.content }} - draft: false - prerelease: false - - - name: "Install PHP dependencies" - uses: php-actions/composer@v6 - - - name: "ZIP" - uses: papeloto/action-zip@v1 - with: - files: / - dest: hird-${{steps.semver.outputs.version_tag}}.zip - - - name: "Publish" - uses: actions/upload-artifact@v2-preview - with: - name: hird-${{steps.semver.outputs.version_tag}}.zip - path: hird-${{steps.semver.outputs.version_tag}}.zip - - - name: "Upload" - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - with: - upload_url: ${{steps.create_release.outputs.upload_url}} - asset_path: hird-${{steps.semver.outputs.version_tag}}.zip - asset_name: hird-${{steps.semver.outputs.version_tag}}.zip - asset_content_type: application/zip -- cgit v1.2.3