Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jan 27, 2022
1 parent ca9f240 commit 2760e61
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,3 @@ jobs:
if-no-files-found: ignore
- if: steps.changes.outputs.changed == 1
run: echo "Working directory is dirty" && exit 1

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
with:
name: cronos
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
- name: nix bundle
run: nix bundle .
- uses: actions/upload-artifact@v2
with:
name: cronosd
path: ./cronosd
26 changes: 24 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ on:
tags:
- "v*.*.*"
jobs:
rocksdb-release:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
with:
name: cronos
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
- name: nix bundle
run: |
nix bundle .
mv ./cronosd ${GITHUB_REF#refs/*/}_Linux_x86_64_rocksdb.zip
- name: release linux rocksdb binaries
uses: softprops/action-gh-release@v1
with:
files: ${GITHUB_REF#refs/*/}_Linux_x86_64_rocksdb.zip

goreleaser:
runs-on: ubuntu-latest
environment: release
Expand All @@ -17,5 +39,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |-
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
- name: draft release
run: make release
# - name: draft release
# run: make release

0 comments on commit 2760e61

Please sign in to comment.