Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release ignore #175

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: Get the release version from the tag
shell: bash
if: env.RG_VERSION == ''
# Apparently, this is the right way to get a tag name. Really?
#
# See: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
run: |
# Apparently, this is the right way to get a tag name. Really?
#
# See: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
echo "RG_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "version is: ${{ env.RG_VERSION }}"

Expand Down Expand Up @@ -135,14 +135,14 @@ jobs:
- name: Build archive
if: startsWith(github.ref, 'refs/tags')
shell: bash
# copy all markdown files
# copy all wasm files
# save the tag name and git sha to the VERSION file
run: |
staging="contracts-${{ needs.create-release-on-tags.outputs.rg_version }}"
mkdir -p "$staging/info"
# copy all markdown files
find . -name \*.md -not -path "./target/*" -prune -not -path "./$staging/*" -prune -exec cp --parents {} "$staging/info/" \;
# copy all wasm files
cp res/*.wasm "$staging/"
# save the tag name and git sha to the VERSION file
echo ${{ needs.create-release-on-tags.outputs.rg_version }} >> "$staging/info/VERSION"
git rev-parse HEAD >> "$staging/info/VERSION"
tar czf "$staging.tar.gz" "$staging"
Expand Down
1 change: 0 additions & 1 deletion res/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
*
!.gitignore