Skip to content

Commit

Permalink
Prepare readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Sinyapkin committed Apr 24, 2024
1 parent 37b8dce commit 07dc001
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build-nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ env:
NIGHTLY_RELEASE_DIR: build/release

jobs:
prepare-release:
runs-on: ubuntu-latest
steps:
- name: Publish readme
run: |
mkdir -p ${{ env.NIGHTLY_RELEASE_DIR }}
echo "ref: $GITHUB_REF" > ${{ env.NIGHTLY_RELEASE_DIR }}/README.md
echo "commit: $GITHUB_SHA" >> ${{ env.NIGHTLY_RELEASE_DIR }}/README.md
echo "date: $(date +"%Y-%m-%dT%H:%M:%SZ")" >> ${{ env.NIGHTLY_RELEASE_DIR }}/README.md
build-nightly-release:
runs-on: ${{ matrix.os }}
env:
Expand Down Expand Up @@ -49,18 +59,11 @@ jobs:
run: |
cross build --target ${{ matrix.target }} --release
- name: Prepare release
run: |
LURK_VERSION=$(grep -E '^version' Cargo.toml | awk '{print $3}' | sed 's/"//g')
LURK_RELEASE_NAME=lurk-v${LURK_VERSION}-nightly-${{ matrix.target }}
mkdir -p ${{ env.NIGHTLY_RELEASE_DIR }}
mv target/${{ matrix.target }}/release/lurk ${{env.NIGHTLY_RELEASE_DIR}}/${LURK_RELEASE_NAME}
echo "ref: $GITHUB_REF" > ${{ env.NIGHTLY_RELEASE_DIR }}/README.md
echo "commit: $GITHUB_SHA" >> ${{ env.NIGHTLY_RELEASE_DIR }}/README.md
echo "date: $(date +"%Y-%m-%dT%H:%M:%SZ")" >> ${{ env.NIGHTLY_RELEASE_DIR }}/README.md
- name: Upload Nightly Release Assets
uses: softprops/action-gh-release@v1
env:
Expand Down

0 comments on commit 07dc001

Please sign in to comment.