Skip to content

Commit

Permalink
fix: need to upload artifacts from git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Feb 9, 2024
1 parent 643c317 commit 44e6a1f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 153 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
echo "downloading binaries to $(pwd)/dist"
gsutil cp -r gs://loki-build-artifacts/${{ needs.shouldRelease.outputs.sha }}/dist .
shell: "bash"
working-directory: "release"
- id: "release"
name: "create release"
run: |
Expand All @@ -49,7 +50,7 @@ jobs:
--target-branch "${{ needs.shouldRelease.outputs.branch }}" \
--token="${{ secrets.GH_TOKEN }}"
shell: "bash"
working-directory: "release"
working-directory: "lib"
- env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
id: "upload"
Expand All @@ -58,6 +59,7 @@ jobs:
gh release upload ${{ needs.shouldRelease.outputs.name }} dist/*
gh release edit ${{ needs.shouldRelease.outputs.name }} --draft=false
shell: "bash"
working-directory: "release"
publishImages:
needs:
- "createRelease"
Expand Down
8 changes: 4 additions & 4 deletions main.jsonnet
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
common: import './workflows/lib/common.libsonnet',
build: import './workflows/lib/build.libsonnet',
release: import './workflows/lib/release.libsonnet',
validate: import './workflows/lib/validate.libsonnet',
common: import './workflows/common.libsonnet',
build: import './workflows/build.libsonnet',
release: import './workflows/release.libsonnet',
validate: import './workflows/validate.libsonnet',
releasePRWorkflow: function(
imageJobs={},
skipValidation=false,
Expand Down
File renamed without changes.
File renamed without changes.
89 changes: 0 additions & 89 deletions workflows/release-pr/main.jsonnet

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ local pullRequestFooter = 'Merging this PR will release the [artifacts](https://
// exits with code 1 if the url does not match
// meaning there are no artifacts for that sha
// we need to handle this if we're going to run this pipeline on every merge to main
step.new('download binaries')
releaseStep('download binaries')
+ step.withRun(|||
echo "downloading binaries to $(pwd)/dist"
gsutil cp -r gs://loki-build-artifacts/${{ needs.shouldRelease.outputs.sha }}/dist .
|||),

releaseStep('create release')
releaseLibStep('create release')
+ step.withId('release')
+ step.withRun(|||
npm install
Expand All @@ -92,7 +92,7 @@ local pullRequestFooter = 'Merging this PR will release the [artifacts](https://
--token="${{ secrets.GH_TOKEN }}"
|||),

step.new('upload artifacts')
releaseStep('upload artifacts')
+ step.withId('upload')
+ step.withEnv({
GH_TOKEN: '${{ secrets.GH_TOKEN }}',
Expand Down
56 changes: 0 additions & 56 deletions workflows/release/main.jsonnet

This file was deleted.

File renamed without changes.

0 comments on commit 44e6a1f

Please sign in to comment.