Skip to content

Commit 79aabe2

Browse files
author
matt
committed
better release management
1 parent 67cea5c commit 79aabe2

File tree

1,412 files changed

+56138
-20986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,412 files changed

+56138
-20986
lines changed

.github/workflows/php.yml renamed to .github/workflows/buildchecks.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ name: Checks
33
on:
44
push:
55
branches: ["main"]
6+
tags:
7+
- "*"
68
pull_request:
79
branches: ["main"]
810

911
permissions:
10-
contents: read
12+
contents: write
13+
packages: write
1114

1215
jobs:
1316
build:
@@ -48,4 +51,25 @@ jobs:
4851
- name: Show PHPCS results in PR
4952
run: cs2pr ./phpcs-report.xml
5053
- name: Upload coverage reports to Codecov
51-
uses: codecov/codecov-action@v3
54+
uses: codecov/[email protected]
55+
with:
56+
token: ${{ secrets.CODECOV_TOKEN }}
57+
- name: Prepare files
58+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
59+
run: |
60+
mkdir AarhusChangeCustomer
61+
# Move everything except .git and README.md into the AarhusChangeCustomer folder
62+
find . -maxdepth 1 ! -name .git ! -name .github ! -name AarhusChangeCustomer ! -name . ! -name README.md -exec mv {} AarhusChangeCustomer/ \;
63+
64+
- name: Archive repository
65+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
66+
run: |
67+
zip -qr "${GITHUB_REF_NAME}.zip" AarhusChangeCustomer
68+
69+
- name: "Create Release"
70+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
71+
uses: ncipollo/release-action@v1
72+
with:
73+
artifacts: "${GITHUB_REF_NAME}.zip"
74+
generateReleaseNotes: true
75+
body: Download the zip file, copy the file to your server under the "Modules" directory, unzip the file and rename the directory createed to AarhusChangeCustomer

0 commit comments

Comments
 (0)