Skip to content

Commit

Permalink
create dist.tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobsic committed Mar 12, 2021
1 parent 0d0fe59 commit b72d2a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,13 @@ jobs:
- uses: actions/checkout@v2
- name: Build
run: |
./build.sh
echo ${{ github.sha }} > Release.txt
#git add dist/
#VERSION="${GITHUB_REF/ref\/tags\//}"
#git config user.email "build@github.com"
#git config user.name "Releas Action"
#git commit -m "v${VERSION}"
#git tag --force "${VERSION}"
#git push --force --tags
#ls -laR
cat dist/contents.txt
mkdir dist
cp index.js dist/
tar -czvf dist.tar.gz dist/*
- uses: softprops/action-gh-release@v1
with:
files: |
Release.txt
dist/contents.txt
dist.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

3 changes: 0 additions & 3 deletions build.sh

This file was deleted.

1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Success")

0 comments on commit b72d2a2

Please sign in to comment.