fix build errors
All checks were successful
Build and Deploy React Package / build-and-publish (push) Successful in 1m40s
All checks were successful
Build and Deploy React Package / build-and-publish (push) Successful in 1m40s
This commit is contained in:
@@ -10,7 +10,7 @@ env:
|
||||
# The URL of your Gitea instance (without http:// or https://)
|
||||
GITEA_INSTANCE_URL: git.deowl.ru
|
||||
# The full name of your package (e.g., 'myusername/myproject')
|
||||
PACKAGE_NAME: vkrb/quantum_frontend
|
||||
PACKAGE_NAME: molecular_frontend
|
||||
# Node.js version to use
|
||||
NODE_VERSION: "24"
|
||||
|
||||
@@ -82,29 +82,25 @@ jobs:
|
||||
VERSION="${{ gitea.sha }}"
|
||||
|
||||
# Upload the tarball
|
||||
curl --fail-with-body \
|
||||
--netrc \
|
||||
--upload-file package.tar.gz \
|
||||
curl --user ${{ gitea.repository_owner }}:${{ secrets.REGISTRY_TOKEN }} \
|
||||
--upload-file package.tar.gz \
|
||||
"https://${{ env.GITEA_INSTANCE_URL }}/api/packages/${{ gitea.repository_owner }}/generic/${{ env.PACKAGE_NAME }}/${VERSION}/package.tar.gz"
|
||||
|
||||
# Upload the checksum file
|
||||
curl --fail-with-body \
|
||||
--netrc \
|
||||
--upload-file package.tar.gz.sha256 \
|
||||
curl --user ${{ gitea.repository_owner }}:${{ secrets.REGISTRY_TOKEN }} \
|
||||
--upload-file package.tar.gz.sha256 \
|
||||
"https://${{ env.GITEA_INSTANCE_URL }}/api/packages/${{ gitea.repository_owner }}/generic/${{ env.PACKAGE_NAME }}/${VERSION}/package.tar.gz.sha256"
|
||||
|
||||
# 9. (Optional) Create a latest version for convenience
|
||||
- name: Update latest version
|
||||
run: |
|
||||
# Upload as 'latest' version
|
||||
curl --fail-with-body \
|
||||
--netrc \
|
||||
--upload-file package.tar.gz \
|
||||
curl --user ${{ gitea.repository_owner }}:${{ secrets.REGISTRY_TOKEN }} \
|
||||
--upload-file package.tar.gz \
|
||||
"https://${{ env.GITEA_INSTANCE_URL }}/api/packages/${{ gitea.repository_owner }}/generic/${{ env.PACKAGE_NAME }}/latest/package.tar.gz"
|
||||
|
||||
curl --fail-with-body \
|
||||
--netrc \
|
||||
--upload-file package.tar.gz.sha256 \
|
||||
curl --user ${{ gitea.repository_owner }}:${{ secrets.REGISTRY_TOKEN }} \
|
||||
--upload-file package.tar.gz.sha256 \
|
||||
"https://${{ env.GITEA_INSTANCE_URL }}/api/packages/${{ gitea.repository_owner }}/generic/${{ env.PACKAGE_NAME }}/latest/package.tar.gz.sha256"
|
||||
|
||||
# 10. Clean up
|
||||
|
||||
Reference in New Issue
Block a user