diff --git a/action1.yaml b/action1.yaml new file mode 100644 index 0000000..d3f5dbb --- /dev/null +++ b/action1.yaml @@ -0,0 +1,39 @@ +# File: .gitea/workflows/build-and-upload.yml +name: Build and Upload Artifact + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Step 1: Check out repository code + - name: Checkout code + uses: actions/checkout@v4 + + # Step 2: Set up Node.js (example for a JS project; adjust for your stack) + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + # Step 3: Install dependencies + - name: Install dependencies + run: npm ci + + # Step 4: Build project + - name: Build project + run: npm run build + + # Step 5: Upload build output as artifact + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: build-output + path: dist/ # Change to your build output directory + retention-days: 7 # Optional: how long to keep artifact diff --git a/pom.xml b/pom.xml index 9c3e160..de79ff3 100644 --- a/pom.xml +++ b/pom.xml @@ -45,10 +45,10 @@ org.springframework.boot spring-boot-starter-data-jpa - + org.springframework.boot spring-boot-starter-web