diff options
| author | ruki <[email protected]> | 2021-05-26 23:26:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-26 23:26:35 +0800 |
| commit | 6cc0de6667e9862d1f30d2358f1f4243b8ba423f (patch) | |
| tree | 86d3838cb4ad81e9a27bc4c5beaa02945f70d25d /.github/workflows/linux.yml | |
| parent | 7ba6a1093361f37ebb7d3937041addd284c0311a (diff) | |
improve ci
Diffstat (limited to '.github/workflows/linux.yml')
| -rw-r--r-- | .github/workflows/linux.yml | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index fa4cca91a..7c1308060 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -26,26 +26,22 @@ jobs: - uses: little-core-labs/[email protected] id: tagName - # tests - - name: tests + - name: Tests run: | xmake lua -v -D tests/run.lua xrepo --version - # build artifacts - - name: artifact + - name: Artifact run: | sudo apt install -y ruby ruby-dev rubygems build-essential sudo gem install --no-document fpm scripts/makepkg deb - # upload artifacts - uses: actions/upload-artifact@v2 with: name: xmake-latest.amd64.deb path: artifacts/xmake.deb - # publish release - - name: publish + - name: Publish if: github.event.action == 'published' uses: actions/[email protected] env: @@ -56,7 +52,7 @@ jobs: asset_name: xmake-${{ steps.tagName.outputs.tag }}.amd64.deb asset_content_type: application/zip - - name: publish + - name: Publish if: github.event.action == 'published' env: PPA_GPG_PRIKEY_2C0C68C9: ${{ secrets.PPA_GPG_PRIKEY_2C0C68C9 }} |
