From 81d4b9d3af2e9ed6bcac09bdfe034c0ad3a25199 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 12 Mar 2024 14:35:25 -0700 Subject: [PATCH] save work --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..957214644 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: Publish a new release +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Get the version + id: get_version + run: | + VERSION=$(node -e 'console.log(require("./version.js"))') + echo "WAVETERM_VERSION=${VERSION}" >> "$GITHUB_OUTPUT" + - name: Copy staged artifacts to the release bucket + run: | + . ./buildres/publish-from-staging.sh + env: + AWS_ACCESS_KEY_ID: "${{ secrets.S3_USERID }}" + AWS_SECRET_ACCESS_KEY: "${{ secrets.S3_SECRETKEY }}" + AWS_DEFAULT_REGION: us-west-2 + - name: Publish to Ubuntu PPA