Skip to content

Commit

Permalink
Add GH actions deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
gbhrdt committed Feb 12, 2025
1 parent 0896131 commit 6bf625b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .drone.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
tags:
- '*'

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: PHP Lint
run: php -l *.php

deploy:
needs: validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y subversion rsync
- name: Deploy to WordPress.org
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_REPOSITORY: https://plugins.svn.wordpress.org/cleverpush
run: ./deploy/deploy.sh

0 comments on commit 6bf625b

Please sign in to comment.