Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper00 committed Sep 22, 2022
1 parent ae88b31 commit d7ae0d1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/linux-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ jobs:
make -j2 config=release
- name: Test
run: chmod +x moon && ./moon test/main_test.lua
if: startsWith(github.ref, 'refs/tags/')
- name: Publish
run: |
mkdir publish
cp -r lualib publish/
cp -r service publish/
cp -r example publish/
cp moon publish/
cd publish
tar -zcvf linux-amd64.tar.gz ./*
- name: Release
uses: softprops/action-gh-release@v1
with:
files: publish/linux-amd64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish
# run: |
# mkdir publish
# cp -r lualib publish/
# cp -r service publish/
# cp -r example publish/
# cp moon publish/
# cd publish
# tar -zcvf linux-amd64.tar.gz ./*
# - name: Release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: publish/linux-amd64.tar.gz
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/linux-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
make -j2 config=release
- name: Test
run: chmod +x moon && ./moon test/main_test.lua
if: startsWith(github.ref, 'refs/tags/')
- name: Publish
run: |
mkdir publish
Expand All @@ -30,6 +29,7 @@ jobs:
tar -zcvf linux-amd64.tar.gz ./*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: publish/linux-amd64.tar.gz
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macos-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
tar -zcvf darwin-amd64.tar.gz ./*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: publish/darwin-amd64.tar.gz
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows-vs2022.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
tar -zcvf windows-amd64.tar.gz ./*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: publish/windows-amd64.tar.gz
env:
Expand Down

0 comments on commit d7ae0d1

Please sign in to comment.