forked from DPDBaltics/PrestaShop-1.7
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from Invertus/TEST-RELEASE
Workflow added to create release and artifact
- Loading branch information
Showing
3 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#Steps needed to trigger a module build: | ||
* Navigate to repository | ||
* Create new release | ||
* Add needed tag | ||
##Github documentation for releases: | ||
https://docs.github.com/en/[email protected]/repositories/releasing-projects-on-github/managing-releases-in-a-repository | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: release | ||
on: | ||
release: | ||
types: [ published, edited, updated, drafted] | ||
|
||
jobs: | ||
build_release: | ||
name: build_release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: build | ||
run: | | ||
composer install --no-dev --optimize-autoloader --classmap-authoritative | ||
composer dump-autoload --no-dev --optimize --classmap-authoritative | ||
rm -rf .git | ||
rm -rf .github | ||
rm -rf tests | ||
rm -rf vendor.zip | ||
mkdir dpdbaltics | ||
rsync -Rr ./ ./dpdbaltics | ||
shopt -s extglob | ||
rm -r !(dpdbaltics) | ||
find . -maxdepth 1 -type f -exec rm "{}" \; | ||
cd dpdbaltics && rm -rf dpdbaltics | ||
cd ../ && zip -r dpdbaltics.zip dpdbaltics/ | ||
- name: Update Release | ||
uses: johnwbyrd/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: ./dpdbaltics.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
"repositories": [ | ||
{ | ||
"type": "git", | ||
"url": "[email protected]:invertus/dpdbaltics-api.git" | ||
"url": "https://github.com/Invertus/dpdbaltics-api.git" | ||
}, | ||
{ | ||
"type": "git", | ||
"url": "[email protected]:invertus/ps-module-tabs.git" | ||
"url": "https://github.com/Invertus/ps-module-tabs.git" | ||
} | ||
], | ||
"autoload": { | ||
|