Update sonarcloud.yml PHP Version #315
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
name: OGSpy Release | |
on: | |
push: | |
branches: [ "develop" , "master"] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name : Checkout OGSPY | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} # checkout the correct branch name | |
fetch-depth: 0 | |
- name: Git Version | |
id: version | |
# You may pin to the exact commit or the version. | |
# uses: codacy/git-version@fa06788276d7492a2af01662649696d249ecf4cb | |
uses: codacy/[email protected] | |
with: | |
# The name of the release branch | |
release-branch: master | |
# The name of the dev branch | |
dev-branch: develop | |
# The prefix to use in the version | |
#prefix: # optional | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- 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: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Replace Value | |
uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
include : 'install/version.php' | |
find : '0.0.0-dev' | |
replace: ${{ steps.version.outputs.version }} | |
regex: false | |
- name: Checkout Xtense | |
uses: actions/checkout@v3 | |
with: | |
repository: 'ogsteam/mod-xtense' | |
ref: 'master' | |
path: 'mod/xtense' | |
- name: Checkout AutoUpdate | |
uses: actions/checkout@v3 | |
with: | |
repository: 'ogsteam/mod-autoupdate' | |
ref: 'master' | |
path: 'mod/autoupdate' | |
- name: Zip Release | |
# You may pin to the exact commit or the version. | |
# uses: TheDoctor0/zip-release@a24011d8d445e4da5935a7e73c1f98e22a439464 | |
uses: TheDoctor0/[email protected] | |
with: | |
# Filename for archive | |
filename: ogspy-${{ steps.version.outputs.version }}.zip | |
# Base path for archive files | |
#path: # optional, default is . | |
# Working directory before zipping | |
#directory: # optional, default is . | |
# List of excluded files / directories | |
exclusions: '*.git* *.vscode* *.docker* sonar-project.properties .editorconfig composer.*' | |
# List of excluded files / directories with recursive wildcards (only applies on Windows with `zip` type) | |
#recursive_exclusions: # optional, default is | |
# Provide any custom parameters to the command | |
#custom: # optional, default is | |
# Tool to use for archiving | |
#type: # optional, default is zip | |
- uses: ncipollo/release-action@v1 | |
with: | |
name : OGSpy ${{ steps.version.outputs.version }} | |
draft: true | |
artifacts: "ogspy-${{ steps.version.outputs.version }}.zip" | |
artifactContentType: zip | |
body : "To be Completed" | |
tag : ${{ steps.version.outputs.version }} |