Update upload-artifact action to version 4 #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Lint Shell Scripts | |
| run: | | |
| sudo apt-get install -y shellcheck | |
| shellcheck scripts/*.sh || true | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run Tests | |
| run: | | |
| echo "Tests will be added here" | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: [lint, test] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Build Package | |
| run: | | |
| tar -czf gratech-ai-launch.tar.gz scripts/ docs/ README.md | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: gratech-package | |
| path: gratech-ai-launch.tar.gz |