Skip to content

Commit 698ad11

Browse files
authored
[Bug] release artifact tarball containing a unexpected parent directory. (#7)
* [Feat] Continuous Delivery triggered on specific tag push workflow trigger modification-> add `on:push:tag:v*` renamed: .github/workflows/manual-triggered-tag-based-release.yml -> .github/workflows/publish-tagged-commit-to-releases-branch.yml * [Bug] release artifact tarball containing a unexpected parent directory. Fixed by `tar -C`. `releases` branch history will be squashed.
1 parent 289f0fe commit 698ad11

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/publish-tagged-commit-to-releases-branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: |
3434
mkdir -p /tmp/cloudflare-ddns-edgeos/
3535
while IFS= read -r filename ; do if [ -f ./"$filename" ]; then cp "$filename" /tmp/cloudflare-ddns-edgeos/ ; fi ; done < ./dev-misc/release-file-include
36-
tar -cvz --exclude-vcs -f /tmp/cloudflare-ddns-edgeos.tar.gz /tmp/cloudflare-ddns-edgeos/
36+
tar -cvz --exclude-vcs -f /tmp/cloudflare-ddns-edgeos.tar.gz -C /tmp cloudflare-ddns-edgeos
3737
mkdir ./release_dir && mv /tmp/cloudflare-ddns-edgeos.tar.gz ./release_dir
3838
3939
- name: Commit & Push to release branch
@@ -44,7 +44,7 @@ jobs:
4444
REPO: self
4545
BRANCH: releases
4646
FOLDER: release_dir
47-
SQUASH_HISTORY: false
47+
SQUASH_HISTORY: true
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4949
MESSAGE: ${{ steps.tagcheck.outputs.tagname }}
5050

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ Thus...this project.
8080

8181
## Release/Feature History
8282

83+
### v1.2
84+
85+
+ Continuous-Delivery via `Github Action` is configured, build and push artifact to `releases` branch.
86+
8387
### v1.1
8488

8589
+ Automatically create dns record (No need to create record manually in advance).
8690

87-
+ Continuous-Delivery via `Github Action` is configured, build and push artifact to `releases` branch.
88-
8991
+ Documentation & comments update (following shell style guideline).
9092

9193
### v1.0-hotfix

0 commit comments

Comments
 (0)