diff --git a/.github/workflows/docker-compose.yml b/.github/workflows/docker-compose.yml deleted file mode 100644 index 5c45ba4..0000000 --- a/.github/workflows/docker-compose.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Docker Compose CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Build the Docker Compose images - run: docker-compose build diff --git a/.github/workflows/publish-to-aws-s3.yml b/.github/workflows/publish-to-aws-s3.yml new file mode 100644 index 0000000..c5f15e5 --- /dev/null +++ b/.github/workflows/publish-to-aws-s3.yml @@ -0,0 +1,20 @@ +on: push + +name: Publish Website to AWS S3 + +jobs: + FTP-Deploy-Action: + name: AWS-S3-Deploy-Action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.1.0 + with: + fetch-depth: 2 + - name: Set AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + - name: Copy to S3 + run: aws s3 sync ./www/. s3://danielmichalski-website diff --git a/.github/workflows/main.yml b/.github/workflows/publish-to-ovh.yml similarity index 94% rename from .github/workflows/main.yml rename to .github/workflows/publish-to-ovh.yml index 1ec429d..4dc6712 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/publish-to-ovh.yml @@ -15,4 +15,4 @@ jobs: username: ${{ secrets.FTP_USERNAME }} password: ${{ secrets.FTP_PASSWORD }} local-dir: ./www/ - server-dir: ./www/ \ No newline at end of file + server-dir: ./www/