diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..275f74f --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,25 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: Cloudflare Workers + url: ${{ steps.deploy.outputs.deployment-url }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Deploy to Cloudflare Workers + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + env: + USERNAME: ${{ secrets.USERNAME }} + PASSWORD: ${{ secrets.PASSWORD }} diff --git a/README.md b/README.md index c5dff89..ef58f23 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ 📦 Lightweight Maven based artifact repository for Cloudflare Workers +[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/tozydev/vela) + This project is a simple Maven based artifact repository for Cloudflare Workers platform. It isn't a full-fledged artifact repository like Nexus or Artifactory, but it's a simple solution for small projects that need to store and retrieve artifacts. I chose Cloudflare Workers because it's free and it's a serverless platform, so you don't need to