Skip to content

Commit

Permalink
[Bug] release artifact tarball containing a unexpected parent directo…
Browse files Browse the repository at this point in the history
…ry. (#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.
  • Loading branch information
MijazzChan authored Mar 1, 2022
1 parent 289f0fe commit 698ad11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: |
mkdir -p /tmp/cloudflare-ddns-edgeos/
while IFS= read -r filename ; do if [ -f ./"$filename" ]; then cp "$filename" /tmp/cloudflare-ddns-edgeos/ ; fi ; done < ./dev-misc/release-file-include
tar -cvz --exclude-vcs -f /tmp/cloudflare-ddns-edgeos.tar.gz /tmp/cloudflare-ddns-edgeos/
tar -cvz --exclude-vcs -f /tmp/cloudflare-ddns-edgeos.tar.gz -C /tmp cloudflare-ddns-edgeos
mkdir ./release_dir && mv /tmp/cloudflare-ddns-edgeos.tar.gz ./release_dir
- name: Commit & Push to release branch
Expand All @@ -44,7 +44,7 @@ jobs:
REPO: self
BRANCH: releases
FOLDER: release_dir
SQUASH_HISTORY: false
SQUASH_HISTORY: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: ${{ steps.tagcheck.outputs.tagname }}

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ Thus...this project.

## Release/Feature History

### v1.2

+ Continuous-Delivery via `Github Action` is configured, build and push artifact to `releases` branch.

### v1.1

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

+ Continuous-Delivery via `Github Action` is configured, build and push artifact to `releases` branch.

+ Documentation & comments update (following shell style guideline).

### v1.0-hotfix
Expand Down

0 comments on commit 698ad11

Please sign in to comment.