diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9292ff4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: sorting + +on: + push: + branches: [ main ] + +jobs: + run-scripts: + runs-on: ubuntu-latest + + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup node + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: requirments + run: npm ci + + - name: scripts + run: | + cd scripts + npx tsx write.ts + npx tsx sort.ts + cd .. + + - name: upload zip + uses: actions/upload-artifact@v4 + with: + name: sort-archive-${{ github.sha }} + path: ./sort.zip + retention-days: 30