Skip to content

Initialize the plugin #5

Initialize the plugin

Initialize the plugin #5

Workflow file for this run

name: Release
on:
push:
branches: [ "main" ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Build release
run: composer run-script build
- name: Version
id: version
run: |-
echo FUNDME_VERSION="$(composer run-script version)" >> "$GITHUB_OUTPUT"
git log $(git describe --tags --abbrev=0)..HEAD --oneline > changes.txt
- uses: ncipollo/release-action@v1
with:
artifactContentType: "application/zip"
artifactErrorsFailBuild: true
artifacts: "fund-me.zip"
bodyFile: changes.txt
draft: true
omitDraftDuringUpdate: true
removeArtifacts: true
tag: "v${{ steps.version.outputs.FUNDME_VERSION }}"
updateOnlyUnreleased: true