From 87bcbb144d9ff3f4e83a0b0f3d0fce9cb367b7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 20:28:12 -0500 Subject: [PATCH 01/67] Update documentation --- doc/Writerside/topics/S3.md | 45 ----------------------------------- doc/Writerside/writerside.cfg | 2 +- 2 files changed, 1 insertion(+), 46 deletions(-) diff --git a/doc/Writerside/topics/S3.md b/doc/Writerside/topics/S3.md index 7679dc7..e708396 100644 --- a/doc/Writerside/topics/S3.md +++ b/doc/Writerside/topics/S3.md @@ -45,51 +45,6 @@ target 'iosApp' do end -
  • create your AppDelegate.swift - -import Foundation -import UIKit -import AWSS3 -import shared - -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - initializeS3() - return true - } - -} - -func initializeS3() { -let credentialsProvider = AWSStaticCredentialsProvider(accessKey: "YOUR_ACCESS_KEY", secretKey: "YOUR_SECRET_KEY") -let configuration = AWSServiceConfiguration.init(region: .USEast1, credentialsProvider: credentialsProvider) - - AWSServiceManager.default().defaultServiceConfiguration = configuration - -} - -
  • -
  • and in your iOSApp.swift file - -import SwiftUI - -@main -struct iOSApp: App { - - @UIApplicationDelegateAdaptor(AppDelegate.self) var delegate - - var body: some Scene { - WindowGroup { - ContentView() - } - } - -} - -
  • ## Examples diff --git a/doc/Writerside/writerside.cfg b/doc/Writerside/writerside.cfg index 2e0a610..de3a88d 100644 --- a/doc/Writerside/writerside.cfg +++ b/doc/Writerside/writerside.cfg @@ -6,5 +6,5 @@ - + \ No newline at end of file From 2e7adc41237ebb784e32cca594ac5138ebabd8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 20:31:38 -0500 Subject: [PATCH 02/67] Update documentation.yml --- .github/workflows/documentation.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 6ea917d..fb7018f 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -4,11 +4,9 @@ on: pull_request: branches: - main - - docs/* push: branches: - main - - docs/* permissions: write-all From 6359b100139ac7322876ecfcb630347dfdb48b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 20:34:34 -0500 Subject: [PATCH 03/67] Update code-coverage.yml --- .github/workflows/code-coverage.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 930020f..bf966aa 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -19,7 +19,6 @@ permissions: jobs: build: - if: github.ref == 'refs/heads/main' name: Build and analyze runs-on: self-hosted steps: From 40459e8024602ae106c26011dba75cb3916d5052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:02:01 -0500 Subject: [PATCH 04/67] Update documentation --- .github/workflows/build.yml | 5 +++ .github/workflows/tst.yml | 35 +++++++++++++++++++ .../com/estivensh4/s3/AWSS3CommonTest.kt | 4 +-- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/tst.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94a6208..1e557c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Perform a Pester test from the Tests.ps1 file + shell: pwsh + run: | + $file = "${{ github.workspace }}/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt" + (Get-Content -path $file -Raw) -replace 'accessKey = accessKey','accessKey = "${{ env.AWS_ACCESS_KEY }}"' -replace 'secretKey = secretKey','secretKey = "${{ env.AWS_SECRET_KEY }}"' | Set-Content -Path $file - name: Set up JDK uses: actions/setup-java@v3 with: diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml new file mode 100644 index 0000000..55348c5 --- /dev/null +++ b/.github/workflows/tst.yml @@ -0,0 +1,35 @@ +name: Pull request + +on: + pull_request: + branches: + - docs/* + push: + branches: + - main + - docs/* + +env: + OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} + OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} + SIGNING_KEY: ${{ secrets.SIGNING_KEY }} + SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} + +jobs: + build-library: + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || github.ref != 'refs/heads/doc/*' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Perform a Pester test from the Tests.ps1 file + shell: pwsh + run: | + $file = "${{ github.workspace }}/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt" + (Get-Content -path $file -Raw) -replace 'accessKey = accessKey','accessKey = "${{ env.AWS_ACCESS_KEY }}"' -replace 'secretKey = secretKey','secretKey = "${{ env.AWS_SECRET_KEY }}"' | Set-Content -Path $file + - name: publish files to artifact + uses: actions/upload-artifact@v2 + with: + name: ${{github.run_number}} + path: upload/** \ No newline at end of file diff --git a/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt b/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt index e84d600..8b20ca8 100644 --- a/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt +++ b/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt @@ -23,8 +23,8 @@ class AWSS3CommonTest { @BeforeTest fun setUp() { - val accessKey = "AKIA2D36JC4724G565BB" - val secretKey = "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" + val accessKey = "accessKey" + val secretKey = "secretKey" client = AWSS3.builder() .accessKey(accessKey) .secretKey(secretKey) From a788e19f6f68f3ccbe6b601e556785b970834aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:03:22 -0500 Subject: [PATCH 05/67] Update documentation --- .github/workflows/tst.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 55348c5..78fdd56 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -1,4 +1,4 @@ -name: Pull request +name: Test on: pull_request: @@ -6,7 +6,6 @@ on: - docs/* push: branches: - - main - docs/* env: From 5028adc3da327c1623187c44c87891eaec471b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:04:31 -0500 Subject: [PATCH 06/67] Update documentation --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 78fdd56..de76afd 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -19,7 +19,7 @@ env: jobs: build-library: if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || github.ref != 'refs/heads/doc/*' - runs-on: ubuntu-latest + runs-on: self-hosted steps: - uses: actions/checkout@v3 - name: Perform a Pester test from the Tests.ps1 file From bb4fa4013cae551c75e67a4f167a5518527cf0bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:07:15 -0500 Subject: [PATCH 07/67] Update documentation --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e557c8..7219b3d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: shell: pwsh run: | $file = "${{ github.workspace }}/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt" - (Get-Content -path $file -Raw) -replace 'accessKey = accessKey','accessKey = "${{ env.AWS_ACCESS_KEY }}"' -replace 'secretKey = secretKey','secretKey = "${{ env.AWS_SECRET_KEY }}"' | Set-Content -Path $file + (Get-Content -path $file -Raw) -replace 'accessKey = "accessKey"','accessKey = "${{ env.AWS_ACCESS_KEY }}"' -replace 'secretKey = "secretKey"','secretKey = "${{ env.AWS_SECRET_KEY }}"' | Set-Content -Path $file - name: Set up JDK uses: actions/setup-java@v3 with: From 109b3bb183dd80efbdce06a0ab9fff5c6d6181e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:11:03 -0500 Subject: [PATCH 08/67] Update documentation --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7219b3d..c313f1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Perform a Pester test from the Tests.ps1 file + - name: Perform a Pester test from the Tests.ps1 shell: pwsh run: | $file = "${{ github.workspace }}/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt" From 2cf993da966c854859e482d3d0d657bb1f3aa9a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:14:39 -0500 Subject: [PATCH 09/67] Update documentation --- .../commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt b/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt index 8b20ca8..2ffcfb4 100644 --- a/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt +++ b/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt @@ -19,12 +19,11 @@ class AWSS3CommonTest { private lateinit var client: AWSS3 private val bucketName = "bucket-unit-testing" private val key = "pexels-pixabay-415829.jpg" + private val accessKey = "accessKey" + private val secretKey = "secretKey" @BeforeTest fun setUp() { - - val accessKey = "accessKey" - val secretKey = "secretKey" client = AWSS3.builder() .accessKey(accessKey) .secretKey(secretKey) From 28d4645d793f12ee1d8cc1d4603e4aa1c1381628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:28:37 -0500 Subject: [PATCH 10/67] Update build.yml --- .../commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt | 2 +- replace.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 replace.sh diff --git a/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt b/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt index 2ffcfb4..9ab7234 100644 --- a/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt +++ b/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt @@ -20,7 +20,7 @@ class AWSS3CommonTest { private val bucketName = "bucket-unit-testing" private val key = "pexels-pixabay-415829.jpg" private val accessKey = "accessKey" - private val secretKey = "secretKey" + private val secretKey = "secretKey/TvMORKV/EpexdHNK380" @BeforeTest fun setUp() { diff --git a/replace.sh b/replace.sh new file mode 100644 index 0000000..7119477 --- /dev/null +++ b/replace.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# Reemplazar la constante OLD_VALUE con el valor proporcionado en la variable de entorno NEW_VALUE +sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt +sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt From d73ede188e1e543258e10b8b048e53170e9db4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:29:35 -0500 Subject: [PATCH 11/67] Update build.yml --- .github/workflows/tst.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index de76afd..c338a94 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -21,14 +21,5 @@ jobs: if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || github.ref != 'refs/heads/doc/*' runs-on: self-hosted steps: - - uses: actions/checkout@v3 - - name: Perform a Pester test from the Tests.ps1 file - shell: pwsh - run: | - $file = "${{ github.workspace }}/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt" - (Get-Content -path $file -Raw) -replace 'accessKey = accessKey','accessKey = "${{ env.AWS_ACCESS_KEY }}"' -replace 'secretKey = secretKey','secretKey = "${{ env.AWS_SECRET_KEY }}"' | Set-Content -Path $file - - name: publish files to artifact - uses: actions/upload-artifact@v2 - with: - name: ${{github.run_number}} - path: upload/** \ No newline at end of file + - name: Check + run: ./replace.sh \ No newline at end of file From 3e434045ef0bf7af616aa1910d59c49f51b2785e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:31:12 -0500 Subject: [PATCH 12/67] Update build.yml --- .../src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt b/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt index 9ab7234..2ffcfb4 100644 --- a/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt +++ b/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt @@ -20,7 +20,7 @@ class AWSS3CommonTest { private val bucketName = "bucket-unit-testing" private val key = "pexels-pixabay-415829.jpg" private val accessKey = "accessKey" - private val secretKey = "secretKey/TvMORKV/EpexdHNK380" + private val secretKey = "secretKey" @BeforeTest fun setUp() { From ef52dc91db3efb6ab25d1ce57b13b565988fd86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:32:22 -0500 Subject: [PATCH 13/67] Update build.yml --- .github/workflows/tst.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index c338a94..fb4aec5 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -21,5 +21,7 @@ jobs: if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || github.ref != 'refs/heads/doc/*' runs-on: self-hosted steps: + - name: Give execute permission to the script + run: chmod +x replace.sh - name: Check run: ./replace.sh \ No newline at end of file From e3a3bac748f19365ddcb60f0225b00902689c7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:34:58 -0500 Subject: [PATCH 14/67] Update build.yml --- .github/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c313f1f..99980ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,11 +24,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Perform a Pester test from the Tests.ps1 - shell: pwsh - run: | - $file = "${{ github.workspace }}/aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt" - (Get-Content -path $file -Raw) -replace 'accessKey = "accessKey"','accessKey = "${{ env.AWS_ACCESS_KEY }}"' -replace 'secretKey = "secretKey"','secretKey = "${{ env.AWS_SECRET_KEY }}"' | Set-Content -Path $file + - name: Give execute permission to the script + run: chmod +x replace.sh + - name: Check + run: ./replace.sh - name: Set up JDK uses: actions/setup-java@v3 with: From 6eb46c23503315b35a47ef8e6e8836d77ef489a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:36:28 -0500 Subject: [PATCH 15/67] Update build.yml --- .github/workflows/tst.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .github/workflows/tst.yml diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml deleted file mode 100644 index fb4aec5..0000000 --- a/.github/workflows/tst.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Test - -on: - pull_request: - branches: - - docs/* - push: - branches: - - docs/* - -env: - OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} - OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} - SIGNING_KEY: ${{ secrets.SIGNING_KEY }} - SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} - AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} - AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} - -jobs: - build-library: - if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || github.ref != 'refs/heads/doc/*' - runs-on: self-hosted - steps: - - name: Give execute permission to the script - run: chmod +x replace.sh - - name: Check - run: ./replace.sh \ No newline at end of file From 1664e6805a7ba0eb526acfd2da28660401e7e64f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:39:47 -0500 Subject: [PATCH 16/67] Update build.yml --- .github/workflows/tst.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/tst.yml diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml new file mode 100644 index 0000000..9abd25b --- /dev/null +++ b/.github/workflows/tst.yml @@ -0,0 +1,28 @@ +name: Test + +on: + pull_request: + branches: + - docs/* + push: + branches: + - docs/* + +env: + OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} + OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} + SIGNING_KEY: ${{ secrets.SIGNING_KEY }} + SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} + +jobs: + build-library: + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || github.ref != 'refs/heads/doc/*' + runs-on: self-hosted + steps: + - name: Reemplazar constantes en archivo Kotlin + run: | + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }} \ No newline at end of file From 73495e4f5030d98ec0895bf8c573824a46772995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:41:08 -0500 Subject: [PATCH 17/67] Update build.yml --- .github/workflows/tst.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 9abd25b..94e1994 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -18,7 +18,6 @@ env: jobs: build-library: - if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || github.ref != 'refs/heads/doc/*' runs-on: self-hosted steps: - name: Reemplazar constantes en archivo Kotlin From 3ad8a212e0ae8ab629b12c66fccb642e852ca108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:42:28 -0500 Subject: [PATCH 18/67] Update build.yml --- .github/workflows/tst.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 94e1994..81a25c4 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -20,6 +20,9 @@ jobs: build-library: runs-on: self-hosted steps: + - name: Reemplazar constantes en archivo Kotlin + run: | + echo ${{ github.workspace }} - name: Reemplazar constantes en archivo Kotlin run: | sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt From 670bf97d821a63d093bae2274c08a69d12cbfa72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:43:04 -0500 Subject: [PATCH 19/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 81a25c4..0d1316f 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -27,4 +27,4 @@ jobs: run: | sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - working-directory: ${{ github.workspace }} \ No newline at end of file + working-directory: ${{ github.workspace }}/ \ No newline at end of file From a1f1f859591c3446102036eff0bc49b3bf431297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:43:20 -0500 Subject: [PATCH 20/67] Update build.yml --- .github/workflows/tst.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 0d1316f..c2d0459 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -25,6 +25,6 @@ jobs: echo ${{ github.workspace }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - working-directory: ${{ github.workspace }}/ \ No newline at end of file + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" /aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" /aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }} \ No newline at end of file From 19de7e747eb60b9acdb7bedc12e563916aa6f3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:45:06 -0500 Subject: [PATCH 21/67] Update build.yml --- .github/workflows/tst.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index c2d0459..0d1316f 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -25,6 +25,6 @@ jobs: echo ${{ github.workspace }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" /aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" /aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - working-directory: ${{ github.workspace }} \ No newline at end of file + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }}/ \ No newline at end of file From f96ab4f7e8aa7ebf96ae75943c3c0cb825ede0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:46:08 -0500 Subject: [PATCH 22/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 0d1316f..6deaa0f 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -25,6 +25,6 @@ jobs: echo ${{ github.workspace }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val accessKey = .*|private val accessKey = \"Hi"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 0c6056d7ca5afba7021f83c3b377fe50a61da0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:46:55 -0500 Subject: [PATCH 23/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 6deaa0f..1fe3394 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -25,6 +25,6 @@ jobs: echo ${{ github.workspace }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"Hi"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$OSSH_USERNAME\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From c538235153e947c439be9b125b0d92669109490e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:47:55 -0500 Subject: [PATCH 24/67] Update build.yml --- .github/workflows/build.yml | 9 +++++---- .github/workflows/tst.yml | 30 ------------------------------ 2 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/tst.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 99980ea..e533992 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,10 +24,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Give execute permission to the script - run: chmod +x replace.sh - - name: Check - run: ./replace.sh + - name: Reemplazar constantes en archivo Kotlin + run: | + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }}/ - name: Set up JDK uses: actions/setup-java@v3 with: diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml deleted file mode 100644 index 1fe3394..0000000 --- a/.github/workflows/tst.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Test - -on: - pull_request: - branches: - - docs/* - push: - branches: - - docs/* - -env: - OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} - OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} - SIGNING_KEY: ${{ secrets.SIGNING_KEY }} - SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} - AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} - AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} - -jobs: - build-library: - runs-on: self-hosted - steps: - - name: Reemplazar constantes en archivo Kotlin - run: | - echo ${{ github.workspace }} - - name: Reemplazar constantes en archivo Kotlin - run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"$OSSH_USERNAME\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - working-directory: ${{ github.workspace }}/ \ No newline at end of file From adbf6d5ce19032b1cf8d2ed8a16e4df3438b7761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:51:03 -0500 Subject: [PATCH 25/67] Update build.yml --- .github/workflows/tst.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tst.yml diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml new file mode 100644 index 0000000..62b96f8 --- /dev/null +++ b/.github/workflows/tst.yml @@ -0,0 +1,30 @@ +name: Test + +on: + pull_request: + branches: + - docs/* + push: + branches: + - docs/* + +env: + OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} + OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} + SIGNING_KEY: ${{ secrets.SIGNING_KEY }} + SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} + +jobs: + build-library: + runs-on: ubuntu-latest + steps: + - name: Reemplazar constantes en archivo Kotlin + run: | + echo ${{ github.workspace }} + - name: Reemplazar constantes en archivo Kotlin + run: | + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }}/ \ No newline at end of file From 552dd379f1449f7a38f7fcd49aaefa8af3c5972b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 21:54:37 -0500 Subject: [PATCH 26/67] Update build.yml --- .github/workflows/tst.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 62b96f8..aecc798 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -25,6 +25,6 @@ jobs: echo ${{ github.workspace }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 00e66c23f8b47a74841a7247166f4292de85cf5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:00:29 -0500 Subject: [PATCH 27/67] Update build.yml --- .github/workflows/tst.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index aecc798..59d8075 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -20,11 +20,16 @@ jobs: build-library: runs-on: ubuntu-latest steps: + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + with: + cache-read-only: ${{ github.ref != 'refs/heads/master' && github.ref != + 'refs/heads/develop' }} - name: Reemplazar constantes en archivo Kotlin run: | echo ${{ github.workspace }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From a29e14090e2131b5aa9c1a732f58d7a91a209902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:01:59 -0500 Subject: [PATCH 28/67] Update build.yml --- .github/workflows/tst.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 59d8075..24ed17a 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -20,11 +20,8 @@ jobs: build-library: runs-on: ubuntu-latest steps: - - name: Setup Gradle - uses: gradle/gradle-build-action@v2 - with: - cache-read-only: ${{ github.ref != 'refs/heads/master' && github.ref != - 'refs/heads/develop' }} + - name: Checkout código + uses: actions/checkout@v2 - name: Reemplazar constantes en archivo Kotlin run: | echo ${{ github.workspace }} From 3787a6a78a8c849b935ab05735f664b7febc333c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:04:03 -0500 Subject: [PATCH 29/67] Update build.yml --- .github/workflows/tst.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 24ed17a..7e07950 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -20,11 +20,24 @@ jobs: build-library: runs-on: ubuntu-latest steps: - - name: Checkout código - uses: actions/checkout@v2 - - name: Reemplazar constantes en archivo Kotlin - run: | - echo ${{ github.workspace }} + - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 17 + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + with: + cache-read-only: ${{ github.ref != 'refs/heads/master' && github.ref != + 'refs/heads/develop' }} + - name: Cache .konan + uses: actions/cache@v2 + with: + path: ~/.konan + key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }} + restore-keys: | + ${{ runner.os }}-konan- - name: Reemplazar constantes en archivo Kotlin run: | sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt From 65062cbdb2de1673291e2229730b7b906fac4a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:06:19 -0500 Subject: [PATCH 30/67] Update build.yml --- .github/workflows/tst.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 7e07950..560ef29 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -40,6 +40,6 @@ jobs: ${{ runner.os }}-konan- - name: Reemplazar constantes en archivo Kotlin run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 55920a0ec8ab0f63042dd2e9086c6d953de8f3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:09:59 -0500 Subject: [PATCH 31/67] Update build.yml --- .github/workflows/tst.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 560ef29..4f62fd0 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -21,6 +21,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Cambiar permisos del archivo + run: chmod +rw aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }} - name: Set up JDK uses: actions/setup-java@v3 with: @@ -40,6 +43,6 @@ jobs: ${{ runner.os }}-konan- - name: Reemplazar constantes en archivo Kotlin run: | - sed -i "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From ab87cb819d453acccb55dd7c01a16bccc5ce4a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:12:57 -0500 Subject: [PATCH 32/67] Update build.yml --- .github/workflows/tst.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 4f62fd0..95f0fba 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -43,6 +43,6 @@ jobs: ${{ runner.os }}-konan- - name: Reemplazar constantes en archivo Kotlin run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's|private val accessKey = .*' -e 'private val accessKey = \"$AWS_ACCESS_KEY\"' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's|private val secretKey = .*' -e 'private val secretKey = \"$AWS_SECRET_KEY\"' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 5506aef6f4490532191fb98dafd6841a99c97bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:17:46 -0500 Subject: [PATCH 33/67] Update build.yml --- .github/workflows/tst.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 95f0fba..561d8a6 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -43,6 +43,6 @@ jobs: ${{ runner.os }}-konan- - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's|private val accessKey = .*' -e 'private val accessKey = \"$AWS_ACCESS_KEY\"' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i -e 's|private val secretKey = .*' -e 'private val secretKey = \"$AWS_SECRET_KEY\"' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 6a2cf7714a6bd85022dc912cf83f8be71e86a5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:19:03 -0500 Subject: [PATCH 34/67] Update build.yml --- .github/workflows/tst.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 561d8a6..56bde40 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -43,6 +43,5 @@ jobs: ${{ runner.os }}-konan- - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i -e "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/variable1=old_value/variable1=new_value/' -e 's/variable2=old_value/variable2=new_value/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 5875eebe0c54a26ab2a6ccdfe233acdeb1683639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:20:23 -0500 Subject: [PATCH 35/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 56bde40..3579bf6 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -43,5 +43,5 @@ jobs: ${{ runner.os }}-konan- - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's/variable1=old_value/variable1=new_value/' -e 's/variable2=old_value/variable2=new_value/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/variable2=old_value/variable2=new_value/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From a92533d1299899250e1a503863d77b94e1c74679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:25:32 -0500 Subject: [PATCH 36/67] Update build.yml --- .github/workflows/build.yml | 9 ++++----- .github/workflows/tst.yml | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e533992..f21801a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,11 +24,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Reemplazar constantes en archivo Kotlin - run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - working-directory: ${{ github.workspace }}/ - name: Set up JDK uses: actions/setup-java@v3 with: @@ -46,6 +41,10 @@ jobs: key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }} restore-keys: | ${{ runner.os }}-konan- + - name: Replace keys + run: | + sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }}/ - name: Check run: ./local-check.sh - name: Library local publish diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 3579bf6..c511015 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -6,7 +6,7 @@ on: - docs/* push: branches: - - docs/* + # - docs/* env: OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} @@ -43,5 +43,5 @@ jobs: ${{ runner.os }}-konan- - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/variable2=old_value/variable2=new_value/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 724e1fcf190f0513fa89e4bead43dc7ac9eddb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:39:28 -0500 Subject: [PATCH 37/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index c511015..9fa4cbd 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -18,7 +18,7 @@ env: jobs: build-library: - runs-on: ubuntu-latest + runs-on: self-hosted steps: - uses: actions/checkout@v3 - name: Cambiar permisos del archivo From c50daae583eabadd82349862e47edd1d26872b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:46:37 -0500 Subject: [PATCH 38/67] Update build.yml --- .github/workflows/tst.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 9fa4cbd..7a7aefe 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -21,26 +21,6 @@ jobs: runs-on: self-hosted steps: - uses: actions/checkout@v3 - - name: Cambiar permisos del archivo - run: chmod +rw aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - working-directory: ${{ github.workspace }} - - name: Set up JDK - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: 17 - - name: Setup Gradle - uses: gradle/gradle-build-action@v2 - with: - cache-read-only: ${{ github.ref != 'refs/heads/master' && github.ref != - 'refs/heads/develop' }} - - name: Cache .konan - uses: actions/cache@v2 - with: - path: ~/.konan - key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }} - restore-keys: | - ${{ runner.os }}-konan- - name: Reemplazar constantes en archivo Kotlin run: | sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt From 4d77a3983eef68a6486d85465938c77d71fa47b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:47:25 -0500 Subject: [PATCH 39/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 7a7aefe..cfa3ac0 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -24,4 +24,4 @@ jobs: - name: Reemplazar constantes en archivo Kotlin run: | sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - working-directory: ${{ github.workspace }}/ \ No newline at end of file + #working-directory: ${{ github.workspace }}/ \ No newline at end of file From 316381baa1c52d1136532d9c9c745bbc78509630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:49:00 -0500 Subject: [PATCH 40/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index cfa3ac0..d0d1fb9 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -23,5 +23,5 @@ jobs: - uses: actions/checkout@v3 - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt #working-directory: ${{ github.workspace }}/ \ No newline at end of file From 2cc3a9742085e51d9b2345e9bea79f470899d892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:50:33 -0500 Subject: [PATCH 41/67] Update build.yml --- .github/workflows/tst.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index d0d1fb9..b26b1db 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -18,10 +18,11 @@ env: jobs: build-library: - runs-on: self-hosted + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Reemplazar constantes en archivo Kotlin run: | - sed -i 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - #working-directory: ${{ github.workspace }}/ \ No newline at end of file + sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }}/ \ No newline at end of file From 94c213604357f9c0aea4a51cb94fc4937c6c200b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:53:14 -0500 Subject: [PATCH 42/67] Update build.yml --- .github/workflows/tst.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index b26b1db..274dbe6 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -21,8 +21,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Obtener valores de las variables de entorno + run: | + AWS_ACCESS_KEY=${{ env.AWS_ACCESS_KEY }} + AWS_SECRET_KEY=${{ env.AWS_SECRET_KEY }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"${AWS_SECRET_KEY}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${AWS_SECRET_KEY}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 4a157cf8cc485f8bafcaf1a9e5f6260519c08fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:55:16 -0500 Subject: [PATCH 43/67] Update build.yml --- .github/workflows/tst.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 274dbe6..3bc9ba4 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -21,9 +21,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Configurar variables de entorno desde secrets + run: | + echo "AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }}" >> $GITHUB_ENV + echo "AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }}" >> $GITHUB_ENV + shell: bash - name: Obtener valores de las variables de entorno run: | - AWS_ACCESS_KEY=${{ env.AWS_ACCESS_KEY }} + AWS_SECRET_KEY=${{ env.VAR1 }} AWS_SECRET_KEY=${{ env.AWS_SECRET_KEY }} - name: Reemplazar constantes en archivo Kotlin run: | From 80c93fad254763aab3186b8b214820f1afe966ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:56:17 -0500 Subject: [PATCH 44/67] Update build.yml --- .github/workflows/tst.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 3bc9ba4..1f86bee 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -23,15 +23,15 @@ jobs: - uses: actions/checkout@v3 - name: Configurar variables de entorno desde secrets run: | - echo "AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }}" >> $GITHUB_ENV + echo "AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }}" >> $GITHUB_ENV echo "AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }}" >> $GITHUB_ENV shell: bash - name: Obtener valores de las variables de entorno run: | - AWS_SECRET_KEY=${{ env.VAR1 }} + AWS_ACCESS_KEY=${{ env.AWS_ACCESS_KEY }} AWS_SECRET_KEY=${{ env.AWS_SECRET_KEY }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"${AWS_SECRET_KEY}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${AWS_SECRET_KEY}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"${AWS_ACCESS_KEY}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${AWS_SECRET_KEY}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From bac5779e49ca0fb00e4befe064f584a08bd6e366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:57:25 -0500 Subject: [PATCH 45/67] Update build.yml --- .github/workflows/tst.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 1f86bee..b6aa5c0 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -13,8 +13,6 @@ env: OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} - AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} - AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} jobs: build-library: From e38fbdbc1cb4d4dfa3d24512347141c75842c6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 22:59:29 -0500 Subject: [PATCH 46/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index b6aa5c0..42d0582 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -30,6 +30,6 @@ jobs: AWS_SECRET_KEY=${{ env.AWS_SECRET_KEY }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"${AWS_ACCESS_KEY}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${AWS_SECRET_KEY}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From b0d364a8c809900a05d3d1653af924dcb1fb68c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:01:06 -0500 Subject: [PATCH 47/67] Update build.yml --- .github/workflows/tst.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 42d0582..ebe4e25 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -26,8 +26,8 @@ jobs: shell: bash - name: Obtener valores de las variables de entorno run: | - AWS_ACCESS_KEY=${{ env.AWS_ACCESS_KEY }} - AWS_SECRET_KEY=${{ env.AWS_SECRET_KEY }} + AWS_ACCESS_KEY=$AWS_ACCESS_KEY + AWS_SECRET_KEY=$AWS_SECRET_KEY - name: Reemplazar constantes en archivo Kotlin run: | sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt From 4b533fbb3e9cd23fb7b8a5fde8d912ce679cf4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:03:14 -0500 Subject: [PATCH 48/67] Update build.yml --- .github/workflows/tst.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index ebe4e25..6e1b1ba 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -13,6 +13,8 @@ env: OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} jobs: build-library: From 2f2f61516b50baf6b27cc1a8771c25fc801bb1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:08:11 -0500 Subject: [PATCH 49/67] Update build.yml --- .github/workflows/tst.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 6e1b1ba..045bbb0 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -28,8 +28,8 @@ jobs: shell: bash - name: Obtener valores de las variables de entorno run: | - AWS_ACCESS_KEY=$AWS_ACCESS_KEY - AWS_SECRET_KEY=$AWS_SECRET_KEY + AWS_ACCESS_KEY=$GITHUB_ENV/AWS_ACCESS_KEY + AWS_SECRET_KEY=$GITHUB_ENV/AWS_SECRET_KEY - name: Reemplazar constantes en archivo Kotlin run: | sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt From 898c75db33fc893db210ef82c68cb8c94095ce44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:11:56 -0500 Subject: [PATCH 50/67] Update build.yml --- .github/workflows/tst.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 045bbb0..7bf8e8a 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -32,6 +32,7 @@ jobs: AWS_SECRET_KEY=$GITHUB_ENV/AWS_SECRET_KEY - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + MI_SECRETO=${{ secrets.AWS_ACCESS_KEY }} + sed -i -e 's/private val accessKey = .*/private val accessKey = \"$MI_SECRETO\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 165c5fb1c21c08f542d95348242bf1520cb98ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:13:55 -0500 Subject: [PATCH 51/67] Update build.yml --- .github/workflows/tst.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 7bf8e8a..bf73742 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -33,6 +33,7 @@ jobs: - name: Reemplazar constantes en archivo Kotlin run: | MI_SECRETO=${{ secrets.AWS_ACCESS_KEY }} + echo "$AWS_ACCESS_KEY" sed -i -e 's/private val accessKey = .*/private val accessKey = \"$MI_SECRETO\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From af0a45037e8cd09e2a871eda6866ddc661886b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:15:29 -0500 Subject: [PATCH 52/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index bf73742..bf63412 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -34,6 +34,6 @@ jobs: run: | MI_SECRETO=${{ secrets.AWS_ACCESS_KEY }} echo "$AWS_ACCESS_KEY" - sed -i -e 's/private val accessKey = .*/private val accessKey = \"$MI_SECRETO\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"$${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From d8d83ac0c1da1384039d444227bc9d4d803f2b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:16:14 -0500 Subject: [PATCH 53/67] Update build.yml --- .github/workflows/tst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index bf63412..f339679 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -34,6 +34,6 @@ jobs: run: | MI_SECRETO=${{ secrets.AWS_ACCESS_KEY }} echo "$AWS_ACCESS_KEY" - sed -i -e 's/private val accessKey = .*/private val accessKey = \"$${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From db34eff6541fa282647854cf9983205e46b33794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:18:19 -0500 Subject: [PATCH 54/67] Update build.yml --- .github/workflows/tst.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index f339679..b10b62b 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -21,19 +21,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Configurar variables de entorno desde secrets - run: | - echo "AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }}" >> $GITHUB_ENV - echo "AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }}" >> $GITHUB_ENV - shell: bash - - name: Obtener valores de las variables de entorno - run: | - AWS_ACCESS_KEY=$GITHUB_ENV/AWS_ACCESS_KEY - AWS_SECRET_KEY=$GITHUB_ENV/AWS_SECRET_KEY - name: Reemplazar constantes en archivo Kotlin run: | - MI_SECRETO=${{ secrets.AWS_ACCESS_KEY }} - echo "$AWS_ACCESS_KEY" - sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${{secrets.SECRET_KEY}}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From f07030328ab9089d567fcbe7a11936c9a145f042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:21:29 -0500 Subject: [PATCH 55/67] Update build.yml --- .github/workflows/build.yml | 2 +- .github/workflows/tst.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f21801a..75e2897 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,7 +43,7 @@ jobs: ${{ runner.os }}-konan- - name: Replace keys run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${{secrets.AWS_SECRET_KEY}}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ - name: Check run: ./local-check.sh diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index b10b62b..07ad30c 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -3,7 +3,7 @@ name: Test on: pull_request: branches: - - docs/* + # - docs/* push: branches: # - docs/* @@ -23,6 +23,6 @@ jobs: - uses: actions/checkout@v3 - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${{secrets.SECRET_KEY}}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${{secrets.AWS_SECRET_KEY}}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From cc67d16edf1834f494f162e0b3e276f4e04cc575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:28:53 -0500 Subject: [PATCH 56/67] Update build.yml --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75e2897..d9a4102 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,7 +43,8 @@ jobs: ${{ runner.os }}-konan- - name: Replace keys run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${{secrets.AWS_SECRET_KEY}}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i "s/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/g" -e "s/private val secretKey = .*/private val secretKey = \"${{secrets.AWS_SECRET_KEY}}\"/g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ - name: Check run: ./local-check.sh From c849a167142e74c4ac3b8d429c69f0077841b569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:31:47 -0500 Subject: [PATCH 57/67] Update build.yml --- .github/workflows/build.yml | 5 +++-- .github/workflows/tst.yml | 13 +++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d9a4102..f008c83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,8 +43,9 @@ jobs: ${{ runner.os }}-konan- - name: Replace keys run: | - sed -i "s/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/g" -e "s/private val secretKey = .*/private val secretKey = \"${{secrets.AWS_SECRET_KEY}}\"/g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} + sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ - name: Check run: ./local-check.sh diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml index 07ad30c..a30911a 100644 --- a/.github/workflows/tst.yml +++ b/.github/workflows/tst.yml @@ -3,7 +3,7 @@ name: Test on: pull_request: branches: - # - docs/* + - docs/* push: branches: # - docs/* @@ -21,8 +21,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Configurar variables de entorno desde secrets + run: | + echo "AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }}" >> $GITHUB_ENV + echo "AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }}" >> $GITHUB_ENV + shell: bash + - name: Obtener valores de las variables de entorno + run: | + AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} - name: Reemplazar constantes en archivo Kotlin run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"${{secrets.AWS_SECRET_KEY}}\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ \ No newline at end of file From 53973182226b054e40d3c50a33b8b80427de3a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:38:00 -0500 Subject: [PATCH 58/67] Update build.yml --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f008c83..c797ed5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,7 +45,10 @@ jobs: run: | AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} + MI_SECRETO_ESCAPADO=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') + echo $MI_SECRETO_ESCAPADO sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ - name: Check run: ./local-check.sh From bdfd9059ca849bb2d1f85852a5100038ff9f4d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:40:22 -0500 Subject: [PATCH 59/67] Update build.yml --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c797ed5..2c88458 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,9 +45,9 @@ jobs: run: | AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} - MI_SECRETO_ESCAPADO=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') - echo $MI_SECRETO_ESCAPADO - sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + AWS_ACCESS_KEY_SCAPE=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') + AWS_SECRET_KEY_SCAPE=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') + sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY_SCAPE\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY_SCAPE\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ - name: Check From 006eb390cfbe3798aa342e98a90af31ab0536450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:42:36 -0500 Subject: [PATCH 60/67] Update build.yml --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c88458..62375a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,9 +45,13 @@ jobs: run: | AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} - AWS_ACCESS_KEY_SCAPE=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') + AWS_ACCESS_KEY_SCAPE=$(echo "$AWS_ACCESS_KEY" | sed 's/[\&/]/\\&/g') AWS_SECRET_KEY_SCAPE=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') - sed -i -e 's/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY_SCAPE\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY_SCAPE\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + + echo $AWS_ACCESS_KEY_SCAPE + echo $AWS_SECRET_KEY_SCAPE + + sed -i -e "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY_SCAPE\"/" -e "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY_SCAPE\"/" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ - name: Check From 1361b2c463f6b07229b5fdc87e056cdcadea0d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Tue, 21 Nov 2023 23:58:50 -0500 Subject: [PATCH 61/67] Update workflows --- .github/workflows/build.yml | 4 ++-- .github/workflows/documentation.yml | 2 +- .github/workflows/publish.yml | 2 +- .github/workflows/tst.yml | 37 ----------------------------- 4 files changed, 4 insertions(+), 41 deletions(-) delete mode 100644 .github/workflows/tst.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62375a1..bf109db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,11 +3,11 @@ name: Pull request on: pull_request: branches: - - main + #- main - release/* push: branches: - - main + #- main - release/* env: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index fb7018f..a196625 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,4 +1,4 @@ -name: Create release and documentation +name: Publish documentation on: pull_request: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cc75745..ba47143 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Create release and documentation +name: Create release on: workflow_dispatch: diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml deleted file mode 100644 index a30911a..0000000 --- a/.github/workflows/tst.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Test - -on: - pull_request: - branches: - - docs/* - push: - branches: - # - docs/* - -env: - OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} - OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} - SIGNING_KEY: ${{ secrets.SIGNING_KEY }} - SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} - AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} - AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} - -jobs: - build-library: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Configurar variables de entorno desde secrets - run: | - echo "AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }}" >> $GITHUB_ENV - echo "AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }}" >> $GITHUB_ENV - shell: bash - - name: Obtener valores de las variables de entorno - run: | - AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} - AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} - - name: Reemplazar constantes en archivo Kotlin - run: | - sed -i -e 's/private val accessKey = .*/private val accessKey = \"${{secrets.AWS_ACCESS_KEY}}\"/' -e 's/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY\"/' aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - working-directory: ${{ github.workspace }}/ \ No newline at end of file From d36eda6fb87295d13be13b1c5860cf23c9638f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Wed, 22 Nov 2023 00:11:34 -0500 Subject: [PATCH 62/67] Update workflows --- .github/workflows/build.yml | 3 --- .github/workflows/publish.yml | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf109db..031fb54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,9 +48,6 @@ jobs: AWS_ACCESS_KEY_SCAPE=$(echo "$AWS_ACCESS_KEY" | sed 's/[\&/]/\\&/g') AWS_SECRET_KEY_SCAPE=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') - echo $AWS_ACCESS_KEY_SCAPE - echo $AWS_SECRET_KEY_SCAPE - sed -i -e "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY_SCAPE\"/" -e "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY_SCAPE\"/" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ba47143..dc06159 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,6 +37,15 @@ jobs: java-version: '17' distribution: 'zulu' cache: gradle + - name: Replace keys + run: | + AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} + AWS_ACCESS_KEY_SCAPE=$(echo "$AWS_ACCESS_KEY" | sed 's/[\&/]/\\&/g') + AWS_SECRET_KEY_SCAPE=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') + + sed -i -e "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY_SCAPE\"/" -e "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY_SCAPE\"/" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - name: Prebuild library run: ./gradlew publishToMavenLocal - name: Publish library From 4cc18b1fc2fcfc1d6e6dca260d9a1578de976dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Wed, 22 Nov 2023 00:13:24 -0500 Subject: [PATCH 63/67] Update workflows --- .github/workflows/documentation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index a196625..276a86d 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -3,10 +3,10 @@ name: Publish documentation on: pull_request: branches: - - main + #- main push: branches: - - main + #- main permissions: write-all From bb08c629f0228a82be770a2432cd0aad0d67f888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Wed, 22 Nov 2023 00:26:21 -0500 Subject: [PATCH 64/67] Update workflows --- .github/workflows/code-coverage.yml | 12 ++++++++++++ .github/workflows/publish.yml | 1 + 2 files changed, 13 insertions(+) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index bf966aa..71ea1eb 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -13,6 +13,8 @@ on: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} permissions: contents: write @@ -42,6 +44,16 @@ jobs: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle + - name: Replace keys + run: | + AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} + AWS_ACCESS_KEY_SCAPE=$(echo "$AWS_ACCESS_KEY" | sed 's/[\&/]/\\&/g') + AWS_SECRET_KEY_SCAPE=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') + + sed -i -e "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY_SCAPE\"/" -e "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY_SCAPE\"/" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }}/ - name: Kover verify run: ./gradlew koverVerify - name: Build and analyze diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dc06159..7704ce3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,6 +46,7 @@ jobs: sed -i -e "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY_SCAPE\"/" -e "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY_SCAPE\"/" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }}/ - name: Prebuild library run: ./gradlew publishToMavenLocal - name: Publish library From 3cad320c922056467b31892209455afca43bdc8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Wed, 22 Nov 2023 00:38:47 -0500 Subject: [PATCH 65/67] Update workflows --- .github/workflows/code-coverage.yml | 3 ++- .github/workflows/tst.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tst.yml diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 71ea1eb..5297a59 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -51,7 +51,8 @@ jobs: AWS_ACCESS_KEY_SCAPE=$(echo "$AWS_ACCESS_KEY" | sed 's/[\&/]/\\&/g') AWS_SECRET_KEY_SCAPE=$(echo "$AWS_SECRET_KEY" | sed 's/[\&/]/\\&/g') - sed -i -e "s/private val accessKey = .*/private val accessKey = \"$AWS_ACCESS_KEY_SCAPE\"/" -e "s/private val secretKey = .*/private val secretKey = \"$AWS_SECRET_KEY_SCAPE\"/" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt cat aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt working-directory: ${{ github.workspace }}/ - name: Kover verify diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml new file mode 100644 index 0000000..2c3655b --- /dev/null +++ b/.github/workflows/tst.yml @@ -0,0 +1,28 @@ +name: Test + +on: + pull_request: + branches: + - docs/* + push: + branches: + # - docs/* + +env: + OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} + OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} + SIGNING_KEY: ${{ secrets.SIGNING_KEY }} + SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} + +jobs: + build-library: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Reemplazar constantes en archivo Kotlin + run: | + sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt + working-directory: ${{ github.workspace }}/ \ No newline at end of file From c48ce8a77359c1e97af2e5902ff8dc39210b3d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Wed, 22 Nov 2023 01:12:50 -0500 Subject: [PATCH 66/67] Update publish.yml --- .github/workflows/publish.yml | 2 +- .github/workflows/tst.yml | 28 ---------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 .github/workflows/tst.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7704ce3..b1f4f8e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -67,4 +67,4 @@ jobs: release_name: v${{ github.event.inputs.version }} body: "Will be filled later" draft: false - prerelease: ${{ github.event.inputs.prerelease }} + prerelease: ${{ github.event.inputs.prerelease }} \ No newline at end of file diff --git a/.github/workflows/tst.yml b/.github/workflows/tst.yml deleted file mode 100644 index 2c3655b..0000000 --- a/.github/workflows/tst.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Test - -on: - pull_request: - branches: - - docs/* - push: - branches: - # - docs/* - -env: - OSSH_USERNAME: ${{ secrets.OSSH_USERNAME }} - OSSH_PASSWORD: ${{ secrets.OSSH_PASSWORD }} - SIGNING_KEY: ${{ secrets.SIGNING_KEY }} - SIGNING_PASSWORD: ${{ secrets.SIGNING_PASS }} - AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} - AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} - -jobs: - build-library: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Reemplazar constantes en archivo Kotlin - run: | - sed -i '' "s|private val accessKey = .*|private val accessKey = \"$AWS_ACCESS_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - sed -i '' "s|private val secretKey = .*|private val secretKey = \"$AWS_SECRET_KEY\"|g" aws-s3/src/commonTest/kotlin/com/estivensh4/s3/AWSS3CommonTest.kt - working-directory: ${{ github.workspace }}/ \ No newline at end of file From 55c7b36844cff939d77f53702ef028e49009d5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estiven=20S=C3=A1nchez?= Date: Wed, 22 Nov 2023 01:14:13 -0500 Subject: [PATCH 67/67] Update workflows --- .github/workflows/build.yml | 4 ++-- .github/workflows/documentation.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 031fb54..317e401 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,11 +3,11 @@ name: Pull request on: pull_request: branches: - #- main + - main - release/* push: branches: - #- main + - main - release/* env: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 276a86d..a196625 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -3,10 +3,10 @@ name: Publish documentation on: pull_request: branches: - #- main + - main push: branches: - #- main + - main permissions: write-all