Fixed bug
This commit is contained in:
parent
1489966833
commit
dcb20d09e8
1 changed files with 7 additions and 7 deletions
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/MoneroOcean/xmrig.git
|
git clone https://github.com/MoneroOcean/xmrig.git
|
||||||
git checkout ${{github.ref:10}}
|
git checkout ${{github.ref}:10}
|
||||||
cd xmrig
|
cd xmrig
|
||||||
- name: Build project on CentOS 6
|
- name: Build project on CentOS 6
|
||||||
run: |
|
run: |
|
||||||
|
@ -27,12 +27,12 @@ jobs:
|
||||||
scl enable devtoolset-6 "make -j$(nproc)"
|
scl enable devtoolset-6 "make -j$(nproc)"
|
||||||
cp src/config.json .
|
cp src/config.json .
|
||||||
mv xmrig-notls xmrig
|
mv xmrig-notls xmrig
|
||||||
tar cfz xmrig-${{github.ref:10}}-lin64.tar.gz xmrig config.json
|
tar cfz xmrig-${{github.ref}:10}-lin64.tar.gz xmrig config.json
|
||||||
- name: Upload CentOS 6 build artifact
|
- name: Upload CentOS 6 build artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: centos6_build
|
name: centos6_build
|
||||||
path: ./xmrig-${{github.ref:10}}-lin64.tar.gz
|
path: ./xmrig-${{github.ref}:10}-lin64.tar.gz
|
||||||
deploy:
|
deploy:
|
||||||
needs: build_lin_rh6
|
needs: build_lin_rh6
|
||||||
name: Create release and upload artifacts
|
name: Create release and upload artifacts
|
||||||
|
@ -44,8 +44,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref:10 }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: Release ${{ github.ref:10 }}
|
release_name: Release ${{ github.ref }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- name: Download CentOS 6 build artifact
|
- name: Download CentOS 6 build artifact
|
||||||
|
@ -58,6 +58,6 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./xmrig-${{github.ref:10}}-lin64.tar.gz
|
asset_path: ./xmrig-${{github.ref}:10}-lin64.tar.gz
|
||||||
asset_name: xmrig-${{github.ref:10}}-lin64.tar.gz
|
asset_name: xmrig-${{github.ref}:10}-lin64.tar.gz
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue