Skip to content

Commit d58a2d3

Browse files
committed
change references
1 parent 22a9fee commit d58a2d3

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
DATABASE_USERNAME: postgres
2929
DATABASE_PASSWORD: postgres
3030
DATABASE_HOST: localhost
31-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
3231

3332
steps:
3433
- uses: actions/checkout@v2
@@ -59,3 +58,9 @@ jobs:
5958
with:
6059
name: screenshots
6160
path: ./spec/decidim_dummy_app/tmp/screenshots
61+
62+
- name: Upload coverage reports to Codecov
63+
uses: codecov/codecov-action@v5
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
slug: openpoke/decidim-module-alternative_landing

README.md

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Decidim::AlternativeLanding - Additional Content Blocks For Decidim
22

3-
[![[CI] Test](https://github.com/Platoniq/decidim-module-alternative_landing/actions/workflows/test.yml/badge.svg)](https://github.com/Platoniq/decidim-module-alternative_landing/actions/workflows/test.yml)
4-
[![Coverage Status](https://coveralls.io/repos/github/Platoniq/decidim-module-alternative_landing/badge.svg?branch=main)](https://coveralls.io/github/Platoniq/decidim-module-alternative_landing?branch=main)
5-
[![Maintainability](https://api.codeclimate.com/v1/badges/565a00f5d7d1ed9879e7/maintainability)](https://codeclimate.com/github/Platoniq/decidim-module-alternative_landing/maintainability)
3+
[![[CI] Lint](https://github.com/openpoke/decidim-module-alternative_landing/actions/workflows/lint.yml/badge.svg)](https://github.com/openpoke/decidim-module-alternative_landing/actions/workflows/lint.yml)
4+
[![[CI] Test](https://github.com/openpoke/decidim-module-alternative_landing/actions/workflows/test.yml/badge.svg)](https://github.com/openpoke/decidim-module-alternative_landing/actions/workflows/test.yml)
5+
[![codecov](https://codecov.io/gh/openpoke/decidim-module-alternative_landing/graph/badge.svg?token=66Bj9xYLjv)](https://codecov.io/gh/openpoke/decidim-module-alternative_landing)
6+
[![Maintainability](https://qlty.sh/gh/openpoke/projects/decidim-module-alternative_landing/maintainability.svg)](https://qlty.sh/gh/openpoke/projects/decidim-module-alternative_landing)
67

78
This module provides alternative and additional content blocks for the Decidim Homepage and Process Groups homepages.
89

@@ -24,39 +25,28 @@ We welcome PR with additional content blocks that can expand similar functionali
2425
Add this line to your application's Gemfile:
2526

2627
```ruby
27-
gem "decidim-alternative_landing", git: "https://github.com/Platoniq/decidim-module-alternative_landing"
28+
gem "decidim-alternative_landing", git: "https://github.com/openpoke/decidim-module-alternative_landing"
2829
```
2930

3031
And then execute:
3132

32-
```bash
33-
bundle
34-
bundle exec rails decidim_alternative_landing:webpacker:install
3533
```
36-
37-
### Upgrade from 0.2.x to 0.3.x
38-
39-
As decidim renamed its `upcoming_meetings` to `upcoming_events` in the 0.25 version, if you are upgrading from an
40-
alternative landing version prior to 0.3 you need to run a task to change the manifest name of the content blocks with
41-
this manifest.
42-
43-
You just need to download and run the task below **before deploying your application to 0.25.x and above** by connecting
44-
to the server you are going to upgrade:
45-
46-
```bash
47-
wget https://raw.githubusercontent.com/Platoniq/decidim-module-alternative_landing/release/0.26-stable/lib/tasks/alternative_landing_rename_upcoming_meetings.rake -P lib/tasks
48-
bundle exec rake alternative_landing:rename_upcoming_meetings:up
34+
bundle
35+
bin/rails decidim:upgrade
36+
bin/rails db:migrate
4937
```
5038

51-
If you need to undo the changes made you can run:
52-
53-
```bash
54-
bundle exec rake alternative_landing:rename_upcoming_meetings:down
55-
```
39+
> **EXPERTS ONLY**
40+
>
41+
> Under the hood, when running `bundle exec rails decidim:upgrade` the `decidim-alternative_landing` gem will run the following two tasks (that can also be run manually if you consider):
42+
>
43+
> ```bash
44+
> bin/rails decidim_alternative_landing:install:migrations
45+
> ```
5646
5747
## Contributing
5848
59-
See [Decidim](https://github.com/Platoniq/decidim-module-alternative_landing).
49+
See [Decidim](https://github.com/openpoke/decidim-module-alternative_landing).
6050
6151
### Developing
6252

lib/tasks/upgrade_tasks.rake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
Rake::Task["decidim:choose_target_plugins"].enhance do
4+
ENV["FROM"] = "#{ENV.fetch("FROM", nil)},decidim_alternative_landing"
5+
end

0 commit comments

Comments
 (0)