fix: removing gitlab-ci, adding a composer build step, adding a tag a… #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a tag when a PR is merged into the main branch and release it | |
name: Tag and create release | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- main | |
jobs: | |
build: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.merge_commit_sha }} | |
fetch-depth: "0" | |
- name: Bump version and push tag | |
uses: anothrNick/github-tag-action@1.64.0 | |
id: create_tag | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
PRERELEASE: false | |
RELEASE_BRANCHES: main | |
- name: Create a Release | |
run: gh release create -t "${{ steps.create_tag.outputs.new_tag }}" "${{ steps.create_tag.outputs.new_tag }}" --generate-notes | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
GH_TOKEN: ${{ github.token }} |