Skip to content

Commit

Permalink
Update build and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
k0gen committed Jan 7, 2025
1 parent 1d3d58b commit f31c5fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/buildService.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: Start9Labs/sdk@v1

- name: Checkout services repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build the service package
id: build
Expand All @@ -27,10 +27,11 @@ jobs:
make
PACKAGE_ID=$(yq -oy ".id" manifest.*)
echo "package_id=$PACKAGE_ID" >> $GITHUB_ENV
printf "\n SHA256SUM: $(sha256sum ${PACKAGE_ID}.s9pk) \n"
shell: bash

- name: Upload .s9pk
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.package_id }}.s9pk
path: ./${{ env.package_id }}.s9pk
path: ./${{ env.package_id }}.s9pk
7 changes: 4 additions & 3 deletions .github/workflows/releaseService.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: Start9Labs/sdk@v1

- name: Checkout services repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build the service package
run: |
Expand All @@ -33,6 +33,7 @@ jobs:
- name: Generate sha256 checksum
run: |
PACKAGE_ID=${{ env.package_id }}
printf "\n SHA256SUM: $(sha256sum ${PACKAGE_ID}.s9pk) \n"
sha256sum ${PACKAGE_ID}.s9pk > ${PACKAGE_ID}.s9pk.sha256
shell: bash

Expand All @@ -48,7 +49,7 @@ jobs:
shell: bash

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: ${{ env.package_title }} ${{ github.ref_name }}
Expand All @@ -68,4 +69,4 @@ jobs:
echo "Publish skipped: missing registry credentials."
else
start-sdk publish https://$S9USER:$S9PASS@$S9REGISTRY ${{ env.package_id }}.s9pk
fi
fi

0 comments on commit f31c5fd

Please sign in to comment.