Skip to content

Commit 41e5abe

Browse files
authored
ci: use absolute path for release tarball
1 parent 512efa9 commit 41e5abe

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,13 @@ jobs:
8181
env:
8282
DEBIAN_FRONTEND: noninteractive
8383
run: |
84+
echo "Installing NPM dependencies..."
8485
npm install
8586
echo "Using version $PKG_VERSION_STRICT"
8687
sed -i -r -e "s/^__version__ += '.*'$/__version__ = '$PKG_VERSION_STRICT'/" ietf/__init__.py
87-
tar -czf ../release.tar.gz -X dev/deploy/exclude-patterns.txt .
88+
echo "Build release tarball... (this could take a while)"
89+
mkdip -p /home/runner/work/release
90+
tar -czf /home/runner/work/release/release.tar.gz -X dev/deploy/exclude-patterns.txt .
8891
8992
- name: Update CHANGELOG
9093
id: changelog
@@ -104,7 +107,7 @@ jobs:
104107
tag: ${{ env.PKG_VERSION }}
105108
name: ${{ env.PKG_VERSION }}
106109
body: ${{ steps.changelog.outputs.changes }}
107-
artifacts: "../release.tar.gz"
110+
artifacts: "/home/runner/work/release/release.tar.gz"
108111
token: ${{ secrets.GITHUB_TOKEN }}
109112

110113
- name: Upload Build Artifacts
@@ -113,4 +116,4 @@ jobs:
113116
with:
114117
name: artifacts
115118
path: |
116-
../release.tar.gz
119+
/home/runner/work/release/release.tar.gz

0 commit comments

Comments
 (0)