-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
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://github.com/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!" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
d26d379
to
b6ea79f
Compare
b6ea79f
to
b75d40a
Compare
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 toconfig-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.