Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
View All Posts Pages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
View All Posts Pages
Commits
b909bc39
Commit
b909bc39
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
tar doesn't create the directory
parent
e20d25c5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!6
Introduce automated deploy to WP.org
Pipeline
#753
failed
6 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/deploy.sh
+3
-2
3 additions, 2 deletions
bin/deploy.sh
with
3 additions
and
2 deletions
bin/deploy.sh
+
3
−
2
View file @
b909bc39
...
@@ -62,8 +62,8 @@ echo "ℹ︎ PLUGIN_SLUG is $PLUGIN_SLUG"
...
@@ -62,8 +62,8 @@ echo "ℹ︎ PLUGIN_SLUG is $PLUGIN_SLUG"
echo
"ℹ︎ PLUGIN_VERSION is
$PLUGIN_VERSION
"
echo
"ℹ︎ PLUGIN_VERSION is
$PLUGIN_VERSION
"
SVN_URL
=
"https://plugins.svn.wordpress.org/
${
PLUGIN_SLUG
}
/"
SVN_URL
=
"https://plugins.svn.wordpress.org/
${
PLUGIN_SLUG
}
/"
SVN_DIR
=
"
/tmp
/svn-
${
PLUGIN_SLUG
}
"
SVN_DIR
=
"
$CI_BUILDS_DIR
/svn-
${
PLUGIN_SLUG
}
"
TMP_DIR
=
"
/tmp
/git-archive"
TMP_DIR
=
"
$CI_BUILDS_DIR
/git-archive"
# Checkout just trunk for efficiency
# Checkout just trunk for efficiency
# Tagging will be handled on the SVN level
# Tagging will be handled on the SVN level
...
@@ -93,6 +93,7 @@ if [[ ! -e "$CI_PROJECT_DIR/.gitattributes" ]]; then
...
@@ -93,6 +93,7 @@ if [[ ! -e "$CI_PROJECT_DIR/.gitattributes" ]]; then
fi
fi
# This will exclude everything in the .gitattributes file with the export-ignore flag
# This will exclude everything in the .gitattributes file with the export-ignore flag
mkdir
"
$TMP_DIR
"
git archive HEAD |
tar
x
--directory
=
"
$TMP_DIR
"
git archive HEAD |
tar
x
--directory
=
"
$TMP_DIR
"
cd
"
$SVN_DIR
"
cd
"
$SVN_DIR
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment