Skip to content

Commit

Permalink
Fix feed release
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Paleologue committed Jul 27, 2021
1 parent e94531c commit 5af1e01
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,24 @@ jobs:
working-directory: scripts/openssl
run: sudo bash build.sh

- uses: "marvinpinto/action-automatic-releases@latest"
- name: Release Packages
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
/opt/workspace/*.zip
id: "first_release_step"
id: "release"

- name: Make QiToolchain Feed
- name: Make Feed
run: scripts/make_feed.sh

- uses: "marvinpinto/action-automatic-releases@latest"
- name: Release Feed
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
feed.xml
id: "second_release_step"
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: feed.xml
asset_name: feed.xml
asset_content_type: application/xml
2 changes: 1 addition & 1 deletion scripts/make_feed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ for URL in $PACKAGES_URLS; do
wget -q $URL -O $ZIP;
NAME=$(unzip -p $ZIP package.xml | xmllint --xpath "string(/package/@name)" -)
VERSION=$(unzip -p $ZIP package.xml | xmllint --xpath "string(/package/@version)" -)
echo " <package name=${NAME} version=${VERSION} url=\"${URL}\" />" >> feed.xml
echo " <package name=\"${NAME}\" version=\"${VERSION}\" url=\"${URL}\" />" >> feed.xml
rm $ZIP
done
echo "</toolchain>" >> feed.xml
Expand Down

0 comments on commit 5af1e01

Please sign in to comment.