Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Oct 22, 2024
1 parent b0e4e32 commit 93c462d
Show file tree
Hide file tree
Showing 30 changed files with 1,672 additions and 197 deletions.
File renamed without changes.
File renamed without changes.
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
release:
name: Prepare & Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
tools: composer:v2

- name: Install NPM Dependencies
run: npm install

- name: Install Composer Dependencies
run: composer install

- name: Compile assets
run: npm run build

- name: Create zip
run: tar -czvf dist.tar.gz dist

- name: Get Changelog
id: changelog
uses: statamic/changelog-action@v1
with:
version: ${{ github.ref }}

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ steps.changelog.outputs.text }}
prerelease: ${{ contains(github.ref, '-beta') }}

- name: Upload zip to release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist.tar.gz
asset_name: dist.tar.gz
asset_content_type: application/tar+gz
File renamed without changes.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ vendor
mix-manifest.json
.idea
composer.lock
resources/dist
.env
2 changes: 1 addition & 1 deletion .phpunit.result.cache

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changelog
13 changes: 10 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "statamic/importer",
"license": "MIT",
"autoload": {
"psr-4": {
"Statamic\\Importer\\": "src"
Expand All @@ -11,13 +12,15 @@
}
},
"require": {
"statamic/cms": "^5.0",
"statamic/cms": "^5.30.0",
"spatie/simple-excel": "^3.7",
"symfony/dom-crawler": "^7.1",
"laravel/pint": "^1.18"
"pixelfear/composer-dist-plugin": "^0.1.5"
},
"require-dev": {
"orchestra/testbench": "^8.0 || ^9.0.2"
"laravel/pint": "^1.18",
"orchestra/testbench": "^8.0 || ^9.0.2",
"phpunit/phpunit": "^10.0"
},
"config": {
"allow-plugins": {
Expand All @@ -33,6 +36,10 @@
"providers": [
"Statamic\\Importer\\ServiceProvider"
]
},
"download-dist": {
"url": "https://github.com/statamic/importer/releases/download/{$version}/dist.tar.gz",
"path": "dist"
}
},
"minimum-stability": "dev",
Expand Down
Loading

0 comments on commit 93c462d

Please sign in to comment.