summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAsko Nõmm <asko@repl.ee>2023-09-25 15:54:46 +0300
committerAsko Nõmm <asko@repl.ee>2023-09-25 15:54:46 +0300
commit8ebb9ca9fbce0982e27296d5016d17d8b20962d6 (patch)
treea69c30fa60cca88ff14df72548aa53bbc4fd60c0 /.github
parentf64bee5818f1795043bf3aff74fee2ca82eda185 (diff)
Delete workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml92
1 files changed, 0 insertions, 92 deletions
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