Skip to content

add s3 upload

add s3 upload #9

Workflow file for this run

---
name: CI build
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
tarFile: "${{ runner.temp }}/output-${{ github.job }}-${{ github.run_number }}-${{ github.run_attempt }}.tar.gz"

Check failure on line 13 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI build

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 13, Col: 12): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.temp
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
id: setup_build_jdk
name: Setup Build JDK
with:
java-version: 21
distribution: temurin
cache: maven
- name: Build
run: |
./mvnw clean install
- name: Package
run: |
FOLDER=$(basename `pwd`)
cd ..
tar czf ${{ env.tarFile }} --exclude=.git $FOLDER
- uses: keithweaver/[email protected]
name: Upload
with:
command: cp
source: ${{ env.tarFile }}
destination: s3://github-action-error-logs/${{ github.repository }}/${{ env.tarFile }}
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: us-east-1