From 9a6c93f8b442825346b5c1693e7e88f3f32965c8 Mon Sep 17 00:00:00 2001 From: Wenyi Kuang Date: Tue, 23 Jul 2024 18:02:44 -0400 Subject: [PATCH] use env? --- .github/workflows/docker-openstudio.yml | 32 ++++++++++++++----------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docker-openstudio.yml b/.github/workflows/docker-openstudio.yml index 581772b..6f6fc10 100644 --- a/.github/workflows/docker-openstudio.yml +++ b/.github/workflows/docker-openstudio.yml @@ -75,24 +75,28 @@ jobs: # name: apptainer-image # path: OpenStudio-${{ env.OPENSTUDIO_VERSION }}${{ env.OPENSTUDIO_VERSION_EXT }}.${{ env.OPENSTUDIO_SHA }}-Apptainer.sif - - name: cleanup + - name: experiment file run: | - unset AWS_DEFAULT_REGION - unset AWS_REGION - unset AWS_ACCESS_KEY_ID - unset AWS_SECRET_ACCESS_KEY - unset AWS_SESSION_TOKEN - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ secrets.AWS_DEFAULT_REGION }} + touch OpenStudio-3.8.0.f953b6fcaf-Apptainer.sif + + # - name: Configure AWS credentials + # uses: aws-actions/configure-aws-credentials@v4 + # with: + # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # aws-region: ${{ secrets.AWS_DEFAULT_REGION }} - name: Upload artifacts to AWS S3 uses: usualdesigner/s3-artifact-upload@main + # env: + # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} with: - bucket-name: openstudio-builds/${{env.OPENSTUDIO_VERSION}} + aws-region: ${{ secrets.AWS_DEFAULT_REGION }} + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + bucket-name: openstudio-builds + prefix: ${{env.OPENSTUDIO_VERSION}} file: OpenStudio-${{ env.OPENSTUDIO_VERSION }}${{ env.OPENSTUDIO_VERSION_EXT }}.${{ env.OPENSTUDIO_SHA }}-Apptainer.sif \ No newline at end of file