-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Dot-files
- Loading branch information
Showing
6 changed files
with
108 additions
and
47 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
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,74 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get release version | ||
run: echo "RELEASE_VERSION=$(./bump_version.sh -p)" >> $GITHUB_ENV | ||
|
||
- name: Create release directory | ||
run: mkdir release-dir | ||
|
||
- name: Copy files to release directory | ||
run: | | ||
while IFS= read -r file; do | ||
echo "Copying $file" | ||
mkdir -p WebCalendar-1.9.8/$(dirname "$file") | ||
cp "$file" WebCalendar-1.9.8/"$file" | ||
done < release-files | ||
- name: Zip the release | ||
run: zip -r WebCalendar-${{ env.RELEASE_VERSION }}.zip WebCalendar-${{ env.RELEASE_VERSION }}/ | ||
|
||
- name: Check and Delete Existing Tag | ||
run: | | ||
# Check if the tag exists | ||
if git rev-parse "v${{ env.RELEASE_VERSION }}" >/dev/null 2>&1; then | ||
echo "Tag exists, deleting..." | ||
git tag -d "v${{ env.RELEASE_VERSION }}" | ||
git push --delete origin "v${{ env.RELEASE_VERSION }}" | ||
fi | ||
- name: Create GitHub Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ env.RELEASE_VERSION }} | ||
release_name: WebCalendar v${{ env.RELEASE_VERSION }} | ||
body: Release of WebCalendar v${{ env.RELEASE_VERSION }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./WebCalendar-${{ env.RELEASE_VERSION }}.zip | ||
asset_name: WebCalendar-${{ env.RELEASE_VERSION }}.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Tag the Release Branch | ||
run: | | ||
# Check if the tag exists | ||
if git rev-parse "v${{ env.RELEASE_VERSION }}" >/dev/null 2>&1; then | ||
echo "Tag exists, deleting..." | ||
git tag -d "v${{ env.RELEASE_VERSION }}" | ||
git push --delete origin "v${{ env.RELEASE_VERSION }}" | ||
fi | ||
# Create and push the tag | ||
git tag v${{ env.RELEASE_VERSION }} | ||
git push origin v${{ env.RELEASE_VERSION }} |
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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
*.class | ||
.DS_Store | ||
.htaccess | ||
*.jar | ||
*.min.* | ||
*.orig | ||
*.save | ||
*.sha | ||
includes/htmlare* | ||
includes/settings.php | ||
*.jar | ||
*.jar | ||
java/ | ||
*.log | ||
mysql-data | ||
node_modules/ | ||
*.old | ||
*.orig | ||
pub/ | ||
__pycache__ | ||
*.save | ||
*.sha | ||
tests/.phpunit.result.cache | ||
vendor/ | ||
wc-icons/ | ||
wc-icons/ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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