Skip to content

Ditch middleman-deploy in favour of git push #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Conversation

pirj
Copy link
Member

@pirj pirj commented Jul 31, 2020

An experimental update to the front page was pushed with

middleman build
cd build
git commit -A -m 'experiment!'
git push staging master

https://rspec-staging.github.io/

image

Setup

# You already have it in .gitmodules
# git submodule add --force -b master -- [email protected]:rspec/rspec.github.io.git build

git submodule init
git submodule update
cd build
git remote add staging [email protected]:RSpec-Staging/rspec-staging.github.io.git

Additionally

We should worry not about CNAME clash:

image

pirj added 4 commits August 1, 2020 00:14
    git submodule add --force -b master -- [email protected]:rspec/rspec.github.io.git build
    cd build
    git remote add staging [email protected]:RSpec-Staging/rspec-staging.github.io.git
This is the source that was built and pushed to staging https://rspec-staging.github.io/
@pirj pirj self-assigned this Jul 31, 2020
@pirj pirj requested review from benoittgt and JonRowe July 31, 2020 21:42
@pirj
Copy link
Member Author

pirj commented Jul 31, 2020

I thought maybe we can set up a Github action to push the PR's branch to staging's master and it will be automatically pushed to https://rspec-staging.github.io? The latest to push wins :D
Should do it since we don't have many concurrent pull requests here anyway.

@benoittgt
Copy link
Member

I thought maybe we can set up a Github action to push the PR's branch to staging's master and it will be automatically pushed to https://rspec-staging.github.io?

Yes! :)

@pirj
Copy link
Member Author

pirj commented Aug 3, 2020

Closing in favour of #156

@pirj pirj closed this Aug 3, 2020
@pirj pirj deleted the submodule-deploy branch August 3, 2020 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants