Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use extra artifacts instead of append release #667

Merged
merged 4 commits into from
Feb 23, 2024
Merged

Conversation

mistydemeo
Copy link
Contributor

The next version of cargo-dist includes a new feature that allows building and uploading extra artifacts as a part of the main build, without any AppendRelease trickery: axodotdev/cargo-dist#613 To make the config a bit easier, I added a flag to config-schema to allow writing it to a file without piping.

This can't be merged until that new release of cargo-dist is out and we're updated to use it, however.

Comment on lines -66 to -87
oranda-css:
name: Add oranda-css to release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
needs: ["should-run"]
if: ${{ needs.should-run.outputs.val == 'run' }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0
- name: Install oranda and build CSS
run: |
echo "uploading CSS to ${{ github.event.workflow_run.head_branch }}"
curl --proto '=https' --tlsv1.2 -LsSf https:/axodotdev/oranda/releases/download/${{ github.event.workflow_run.head_branch }}/oranda-installer.sh | sh
oranda generate-css
ls oranda-css/dist
echo "built css!"
# Upload css to the Github Release™
gh release upload ${{ github.event.workflow_run.head_branch }} oranda-css/dist/oranda.css
echo "uploaded css!"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't look like you added generation for oranda-css, and this is the Really Important one to migrate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually totally missed that one - I'll add it now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

@Gankra Gankra marked this pull request as ready for review February 23, 2024 15:59
@Gankra Gankra merged commit c99c955 into main Feb 23, 2024
13 checks passed
@Gankra Gankra deleted the add_extra_artifacts branch February 23, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants